error: package javax.xml.bind does not exist
Try these fixes if you run into issues with javax.xml.bind, which was deprecated and later removed from Java. ---------------------------------------------------------------------- Solution 1 => Switch to Java 8 Please install the latest JDK 8 from oracle for your OS - https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html . If you have the latest Java (version 11/14) installed, you need to also install JDK 8 and use it to run the java code. Switch to JDK 8 on Linux / macOS: - Check current java version % java --version , if it is JDK 11/14 then install JDK 8 - Check all JDK versions installed % /usr/libexec/java_home -V - Edit bash profile % nano ~/.bash_profile export JAVA_HOME_8=$(/usr/libexec/java_home -v1.8) export JAVA_HOME_11=$(/usr/libexec/java_home -v11) export JAVA_HOME_14=$(/usr/libexec/java_home -v14)