Page 1 of 1
xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one currently
Posted: Wed Oct 19, 2022 2:22 pm
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
Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren
Posted: Wed Oct 19, 2022 2:34 pm
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
Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren
Posted: Thu Oct 20, 2022 1:56 pm
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.
Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren
Posted: Thu Oct 20, 2022 3:22 pm
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
Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren
Posted: Fri Oct 21, 2022 9:58 am
by vishwavaranasi
Thanks Radu ,
even it is showing error some how the custom classes what we had in our jar detecting by oxygen

Re: xxx-ditamap-framework.jar - The classes were compiled using a newer version of the Java compiler than the one curren
Posted: Fri Oct 21, 2022 10:19 am
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