I'm trying to export a deployable feature for my eclipse program, every time I try to export it with jdk17 which we're just upgrading to I get the "The package *********** is accessible from more than one module: , java.xml" in a certain plugin project but does not cause any error in the code. I need the compliance level to stay on jdk17, I'm also not sure if plugin projects are generated modularized because according to eclipse trying to create the module-info.java "may not be synchronized with the manifest file", and creating a new plugin project doesn't generate said file. Packages providing the error are:
- javax.xml.parsers
- org.w3c.dom
- org.xml.sax
I'm using a custom target platform that originally had a version of javax.xml which I now have removed. Having both types in my project gives the same error but, in the code, and when exporting feature. Having only the jdk17 version still produces the error when exporting.
So far, I have tried:
- Remove the javax.xml from the target platform
- Remove the dependency from MANIFEST.MF of the project that has the issue
- Checked the types in the project to ensure that it does not exist in more than one module, anything using javax.xml comes from the jdk now
- Create a new workspace with the project and restarting my PC
I also followed the steps in these questions among others with no luck. Eclipse is confused by imports ("accessible from more than one module") Package accessible from more than one module: <unnamed>