On some imports I get the following exception:
The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml
Example:
import org.w3c.dom.Document;
I'm using Eclipse, OpenJDK 11. By using Ctrl+Shift+T to find out all places
org.w3c.dom.Document
is available in the modulepath/classpath of my project only gives me JDK library (JDK 11) in result list.
I don't find any other jar/libraries present in classpath of the project listed.
So why am I getting above error if org.w3c.dom
package is only referenced from JDK runtime (modulepath) only?