I'm migrating a Java 8 project to Java 11. IDE used is Eclipse 2020-09. I have NOT modularized the project.
For the below imports:
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
I'm getting compile time error message:
The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml
I have checked my project and org.w3c.dom package is not present in 3rd party libs or added by any transitive dependencies in the project jars.
However note that org.w3c.dom.Document is an interface and I found few libraries that implement this interface. Is this the root cause of
package is accessible from more than one module
message ?
Below are the implementors of org.w3c.dom.Document in Eclipse project
As you can see in above screenshot the JBoss EAP 7.3 runtime libraries contain implementation of org.w3c.dom.Document
. Is it correct to say JBoss runtime libraries are contributing to this Java 11 migration problem I'm having ?