java.lang.Error: Unresolved compilation problems: [message #1858413] |
Sat, 01 April 2023 17:23 |
James Poli Messages: 27 Registered: January 2022 |
Junior Member |
|
|
Hello,
I'm upgrading our Eclipse plug-ins from the Eclipse 2021-09 building with Java 11 to Eclipse 2023-03 building with Java 17. I had to include the CVS Team plug-in from Eclipse 2021-09 since many developers here still use CVS on older versions of our code.
I've been able to "Launch and Eclipse application" in the PDE, but when I create a site and install the plug-ins on Eclipse 2023-03, I get the errors below.
After a google search, I found several hits indicating I've likely got a third-party jar on the classpath containing the same package name classes, javax.xml.parsers. But, after using the dependency analysis in Eclipse, I've only found the same classes in an Eclipse plug-in javax.xml (javax.xml_1.3.4.v201005080400.jar) (in base Eclipse) pulled in transitively via org.apache.ant (1.10.12.v20211102-1452) plug-in, which we use.
I need help understanding why Eclipse doesn't get the same error when using Ant functionality. Do I need to include something on configuring the JVM when running with Java 17? Perhaps including the CVS Team plug-in from a previous Eclipse release is causing the issue?
Any insight is appreciated.
Regards, Jim
---- ERRORS ----
java.lang.Error: Unresolved compilation problems:
The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml
The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml
The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml
The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml
The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml
The package org.xml.sax is accessible from more than one module: <unnamed>, java.xml
|
|
|
|
|
|
|
|
|
|
|
|
Re: java.lang.Error: Unresolved compilation problems: [message #1858479 is a reply to message #1858476] |
Tue, 04 April 2023 14:02 |
James Poli Messages: 27 Registered: January 2022 |
Junior Member |
|
|
Well, Stephan, you are correct. The class file in the install site jar for the project is smaller than the class file built into the project. In the good old days, I created the jars, features, and site with Eclipse Tycho. Eclipse Tycho had issues with two separate P2 repositories, one for Eclipse 2023-03 and one for Eclipse 2021-12, to pick the CVS client packaged in it. Right now, I do build all of the projects in the workspace. Then, open the site.xml, select the Site Map tab at the bottom of the center window, and press the Build All button.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03621 seconds