-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnsupportedClassVersionError #85
Comments
sorry for not getting back to you earlier. It looks to me like net/sf/dynamicreports was compiled using java 17 without the --release 11 switch set. Out of curiosity, how did you solve this in the end? Might be helpful for others with the same error. |
Thanks for your answer. I searched a little bit on the internet, where did you find the possibility to set a --release flag for dynamicreports. I have the impression, that it lacks a little bit for documentation, so I didnt found something according this. Maybe you can post a link or something like this :) |
With the I was previously just looking at the dynamicreports website https://dynamicreports.org/, which did not point to any update of this library past 2018, and did not hint at maven coordinates. I assumed the library had to be therefore compiled manually, which lead me to believe that you might have used jdk 17 by mistake for the compilation. Sorry for this misunderstanding. I dug a bit deeper and found their new github https://github.com/dynamicreports/dynamicreports. According to dynamicreports/dynamicreports#124 (comment) you might be able to use dynamicreports 6.20.0, which could be compatible with java 11. Can you please try this out? Not sure though if it is compatible with jasper 6.21.2. |
Hello, I am trying to update from to Jasper Reports 6.11.0 to 6.21.2 so it seems to be a good choice to also update jasperreports-plugin. So I am now taking it from your repo with Version 3.6.1.
I am getting the following exception when i build my project.
com.pro-crafting.tools:jasperreports-plugin:3.6.1:jasper (default) on project XXXX: Error while compiling Jasper reports: java.lang.UnsupportedClassVersionError: net/sf/dynamicreports/jasper/base/JasperSystemFontExtensionsRegistryFactory has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Any idea how can i get fix this?
My plugin configuration looks like the following
The text was updated successfully, but these errors were encountered: