xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one currently

Post here questions and problems related to oXygen frameworks/document types.
vishwavaranasi
Posts: 168
Joined: Fri Feb 28, 2020 4:02 pm

xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one currently

Post by vishwavaranasi »

Hello Team ,
We have oxygen 24.0 bundled java 8
and our custom frame work jar compiled with java 8 , but when we wanted to assign Author - Actions
and trying to detect our custom actions from framework jar , this is giving

Detection errors:

C:\Program Files\Oxygen XML Editor 24\frameworks\xxx-ditamap-framework\xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one currently installed.

module-info has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Thanks,
vishwa
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren

Post by Radu »

Hi,

The error message is quite clear, your framework java extensions seem to have been compiled with Java 9 and newer compatibility. You need to double check they are compiled with a Java 8 compiler or with a Java 9 compiler in Java 8 compatibility.

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

Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren

Post by vishwavaranasi »

Thanks Radu , we are compiling and building our framework jar using Intellij Gradle and java version is 8 only.

but some where the gradle or Intellij is introducing the class module-info.java and only that specific class compiling with java 9.

ERROR
module-info has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
don't know what to do , please suggest any inputs here.
Thanks,
vishwa
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren

Post by Radu »

Hi,

I don't know exactly how you are building the JAR libraries, if you open the built JAR library using a zip utility like 7-Zip and look in the "META-INF/MANIFEST.MF" file does it say anything about the Java version it was compiled with?
If you send us via email (support@oxygenxml.com) more details like the JAR libraries, maybe also the part of the gradle script which compiles maybe we'll have more details to help further.

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

Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren

Post by vishwavaranasi »

Thanks Radu ,

even it is showing error some how the custom classes what we had in our jar detecting by oxygen :D
Thanks,
vishwa
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren

Post by Radu »

Hi,

Right, the code we have for detecting all custom operations in a JAR library needs to go through all the Java classes in the JAR and possibly one of those Java classes is compiled with Java 9 or newer. But the others are compiled with Java 8 so at runtime things work.

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