Page 1 of 1

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

Posted: Thu Dec 16, 2021 7:32 pm
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.

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

Posted: Fri Dec 17, 2021 9:04 am
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

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

Posted: Fri Dec 17, 2021 1:34 pm
by vishwavaranasi
Thanks Radu.

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

Thanks,
vishwa

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

Posted: Fri Dec 17, 2021 1:50 pm
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

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

Posted: Mon Dec 20, 2021 2:04 pm
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

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

Posted: Mon Dec 20, 2021 2:11 pm
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