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.