I have the following line of code
import javax.xml.bind.DatatypeConverter;
which is giving me a
javax.xml.bind cannot be resolved
where can I find the library file for this import?
Advertisement
Answer
The module javax.xml.bind has been renamed and is also deprecated as of Java 9.
To workaround you can add --add-modules java.xml.bind
to javac
compilation. As suggested here
Or switch back to Java 8 or older