compiled by a more recent version of the Java Runtime (class file version 55.0), this version up to 52.0

Having trouble installing Oxygen? Got a bug to report? Post it all here.
vishwavaranasi
Posts: 168
Joined: Fri Feb 28, 2020 4:02 pm

compiled by a more recent version of the Java Runtime (class file version 55.0), this version up to 52.0

Post by vishwavaranasi »

Hello Team,

We have java version 11 used for our plugin to build the jar , after copying the plugin jar , we tried to open the oxygen editor version 23, it is giving us error as below.

Exception java.lang.UnsupportedClassVersionError
com/xxx/xxx/xxxx/xxxx/xxxxWorkspaceAccessPluginExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

how to change the java version for oxygen editor to pickup java 11 installation on my local machine.

Thanks,
vishwa.
Thanks,
vishwa
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: compiled by a more recent version of the Java Runtime (class file version 55.0), this version up to 52.0

Post by Radu »

Hi,

Probably you are using the Oxygen 23 kit which comes with Java 8 which cannot run the classes compiled with Java 11.
Either you can compile your classes in a way in which they are compatible with Java 8 or use the Oxygen 23 kit which comes with Java 15:
https://www.oxygenxml.com/xml_editor/so ... ditor.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
vishwavaranasi
Posts: 168
Joined: Fri Feb 28, 2020 4:02 pm

Re: compiled by a more recent version of the Java Runtime (class file version 55.0), this version up to 52.0

Post by vishwavaranasi »

Thanks Radu.

We are planning to move to oxygen version 24 , dos this version supports Java 11?

Thanks,
vishwa
Thanks,
vishwa
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: compiled by a more recent version of the Java Runtime (class file version 55.0), this version up to 52.0

Post by Radu »

Hi,

Oxygen's own Java code is compiled with Java 8 and compatible with Java Runtime Environment 8 and newer.
For Oxygen 24 we also have two installation kits, one with Java 8 and one with Java 17.
If your plugin's code is compiled with Java 11 and compatible with a Java Runtime Enviroment 11 and newer, then it will not work with Oxygen 24 if Oxygen 24 is bundled with Java 8. But it should work if you use the Oxygen 24 kit bundled with Java 17.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
vishwavaranasi
Posts: 168
Joined: Fri Feb 28, 2020 4:02 pm

Re: compiled by a more recent version of the Java Runtime (class file version 55.0), this version up to 52.0

Post by vishwavaranasi »

Hi Radu , thanks for the information.

would you please point us the downloadable Oxygen 24 kit bundled with Java 17 ? or name of the installer.

is there any bundled with java 11 as such? or the Oxygen 24 kit bundled with Java 17 should be used for Java 11 compiled plugin's code?

Thanks,
vishwa
Thanks,
vishwa
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: compiled by a more recent version of the Java Runtime (class file version 55.0), this version up to 52.0

Post by Radu »

Hi,

We have multiple product types: Oxygen XML Editor, XML Author and XML Developer.
For example for Oxygen XML Editor if you go to the downloads page:
https://www.oxygenxml.com/download.html

for Windows:
https://www.oxygenxml.com/xml_editor/do ... os=Windows

the first available kit in the web page is "Windows 64-bit (Includes OpenJDK* 17.0.1)".

This Oxygen kit containing Java 17 should be able to use plugins which are compiled with more recent versions of Java like Java 11.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply