Does Eclipse oxygen support Java 11?

I am getting error while trying to add JDK 11 to eclipse oxygen 4.7.0 M2.

I also checked on Eclipse Market Place but there is not plug in available for JDK11 support.

Any suggestion to fix this error ?

Naman

24.2k26 gold badges208 silver badges342 bronze badges

asked Oct 29, 2018 at 1:53

Gunjan ShahGunjan Shah

4,92814 gold badges49 silver badges70 bronze badges

2

//marketplace.eclipse.org/content/java-11-support-eclipse-2018-09-49

Basically, start by updating to 2018-09 and then that Marketplace entry. JDK 9 support was only added after Oxygen released with Oxygen.1a. A milestone during development won't support Java 9 or any newer release.

In general, please do not keep using a milestone for a release once that release has actually, well, been released.

answered Oct 29, 2018 at 4:15

2

Oxygen general issues.

SNOPosts: 51Joined: Mon Oct 01, 2012 3:05 pm

Oxygen Auhtor (Eclipse Version) and Java 11

Hi,

we're using the Oxygen XML-Author (com.oxygenxml.author) Plugin in our Eclipse-RCP Application.

Since were migrating our Application Code to Java-SE 11, we run into troubles because the oxygen.xml.author Plugin has jars on it's bundle Classpath which export packages that already exists in the JRE 11-Librarys.
(Namly the xml-apis.jar export packages that are exported by java11 in the java.xml module)

Because we use imports of java.xml in a Plugin that depends on the oxygen.xmlauthor Plugin the packages cannot be resolved because they exist in more than one module

Eclipse Error Message:

Code: Select all

The package javax.xml.transform.sax is accessible from more than one module: <unnamed>, java.xml

Could you give us advice how to fix or workaround this issue?

Best Regards
Stefan

Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH

RaduPosts: 8243Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen Auhtor (Eclipse Version) and Java 11

Post by Radu » Wed Feb 10, 2021 1:38 pm

Hi Stefan,

We still build our Eclipse plugin using Java 1.8 and when installed in Eclipse it is compatible with both Java 1.8 and 9+.
So in the Oxygen plugin's "MANIFEST.MF" indeed we have in the "Bundle-ClassPath" a reference to our own "xml-apis.jar" located in the Oxygen "lib" folder.
I don't know what to advice you, I think this is more or a compilation problem than a runtime problem. Maybe you can modify the Oxygen plugin and remove from its MANIFEST.MF its reference to the xml-apis.jar to bypass the compilation problem. I'll add an internal issue on our side to try the same thing and see maybe in the future avoid distributing the xml-apis.jar completely if it's identical to the one in the Java JRE libraries list.

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
//www.oxygenxml.com

RaduPosts: 8243Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen Auhtor (Eclipse Version) and Java 11

Post by Radu » Wed Sep 22, 2021 9:17 am

Hi Stefan,

As an update, we cannot remove the xml-apis.jar library yet from the Oxygen Eclipse plugin.
When the plugin is run with java 8, Java 8 does not contain a certain class "org.w3c.dom.ElementTraversal" breaking our XML processing. For newer Java versions the jar is no longer necessary.
So to remove the JAR we would need to have probably two plugin flavors (one for java 8 and one for newer Java).
We'll reconsider this when we completely give up Java 8.

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
//www.oxygenxml.com

What version of Eclipse is oxygen?

This year's Eclipse Oxygen is the 12th official simultaneous release; it includes the hard work from of 83 open source projects, comprising approximately two million net new lines of code. ... Eclipse Oxygen..

Does Eclipse oxygen support Java 17?

Java™ 17 Support Java 17 is out and Eclipse JDT supports Java 17 in 4.21 via Marketplace.

Does Eclipse oxygen support Java 9?

Java 9 reorganizes the runtime into modules, but this conflicts with the way Eclipse organizes its own runtime. Users who install Eclipse Oxygen 4.7. 1a are able to launch with Java 9 and get Java 9 support, and the configuration described below won't be necessary anymore.

Does Neon support Java 11?

No, it is too old and does not understand the revised layout of the JDK in newer Javas.

Chủ đề