When I try to make a project in IntelliJ, I get the following error on this line:
Sentence sent = new Sentence(); sent.emptySegments();
Error:
Error:(151, 10) java: cannot access javax.xml.bind.RootElement class file for javax.xml.bind.RootElement not found
Sentence is a class that implements the RootElement interface RootElement
import javax.xml.bind.RootElement; ... public class Sentence extends MarshallableRootElement implements RootElement {
All packages exist, and I can move on to declaring each interface or class, but I donβt know why IntellJ says that it cannot get or find them? However, RootElement is an interface, not a class.
public interface RootElement extends Element { void validate() throws StructureValidationException; }
The above declaration is in the jar file named jaxb-rt-1.0-ea.jar and exists in the project libraries.
source share