0

I'm trying to upgrade from java 11 to java 17 an I'm facing this issue, while searching a lot on stackoverflow, i got to know about this on the basis of this I was able to solve the issue for a package which is import javax.xml but for the package import org.w3c.dom the same solution is not working. The solution that I followed : Eclipse is confused by imports ("accessible from more than one module") .

It says that, there will be two packages, one will be in teh JDK 27 and one will be in a dependency. but in the dependency, there isn't any such package. Please refer the attachment and kindly help me in this. enter imaenter image description herege description here

Ruch
  • 111
  • 1
  • 7
  • If `org.w3c.dom` is not used in your source code, then it is used in a dependency, otherwise you would not get this error. In the dialog you get via _Navigate > Open Type..._ (Ctrl+Shift+T), type `org.w3c.dom.*` to find out where it comes from. Please also open your `pom.xml` (which is missing in your question, by the way) and check in the _Dependency Hierarchy_ tab because it might be a dependency that is not listed in your `pom.xml`, but a dependency of a dependency. – howlger Jan 16 '23 at 07:49

0 Answers0