I am working on a project that requires the package “java.xml.bind”. But its cannot be resolved or imported. Once I type the import statement it gives an error “The import javax.xml.bind cannot be resolved”.
I am using java 8 it should be part of the JDK package correct me if am wrong.
Anyone who has a solution.
It means a class you are referencing is not found anywhere on the classpath. You need the library you’re trying to use added to your classpath. In Eclipse, that’s in project properties in the Java Build Path => Libraries tab.