0

I keep getting these errors in eclipse and I've scoured the internet and none of the listed fixes help.

If you need more information to answer my question then please let me know and I will find it.

Please submit all answers in plain English with links or I probably won't understand.

The package javax.xml.stream is accessible from more than one module: , java.xml

1 Answers1

0

Since you are having problems with the Java Platform Module System, you can:

  • either change your Eclipse project compliance to Java 8: choose "Properties > Java Build Path > Libraries", select JRE System Library, "Edit..." and choose "Java SE-1.8" as execution environment.
  • or find which package is both in the JRE and classpath (read this answer). You just need to press Ctrl+Shift+o and type javax.xml.stream. You'll see that the package is in both the JRE and geronimo-stax-api. Delete the latter from your classpath.
Piotr P. Karwasz
  • 12,857
  • 3
  • 20
  • 43
  • @Karl, based on your [last question](https://stackoverflow.com/q/65860908/11748454) you have the entire Axis2 distribution on your classpath. Remove `geronimo-stax-api*jar`. – Piotr P. Karwasz Jan 27 '21 at 05:33