Mictog Posted July 11, 2017 Share Posted July 11, 2017 I have a bit of a conundrum. I write reports for a product which we are in the process of upgrading. With the upgrade the software utilizes TOMCAT 8 and I belive Java 8 (I am working to confirm this). This is important because when I try to edit a report for this new version in iReport 5.6.0 I receveve the following error concerning specific elements written by the vendor to suppor Jasper reporting. Error filling print... java.lan.UnsupportedClassVersionError: OHMJRScriptlets/OHMJRptUtilSxcriptlets : Unsupported major.monir version 50.0 nulljava.lang.UnsupportedClassVersionError: OHMJRScriptlets/OHMJRptUtilScriptlets : Unsupporte Major.minor version 52.0It is my understanding that Java version 52.0 is Java 7.When I try to load the same report in Jaspersoft Studio 6.2.1 I get a different error:Reason: Errors were encounted when compiling report gexpressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:General error during class generation: java.lang.NoClassDefFoundError: Unable to load class OHMJRScriptlets.OHMRptUtilScriptilets due to missing dependency net/sf.jasperreports/engine/JrScriptlet Exception.I have multiple versions of java (32 bit) on my local machine (64-bit Win 7) running:1.7 (1.7.0_55)1.8 (1.8.0_40)1.8 (1.8.0_131)Prior to the upgrade, and if i point to the Tomcat 7 installation the reports all worked fine. Pointing to Tomcat 7 is not an option. I will be working with the vendor on this, but I thought I would come to the community to see what I may be missing and if someone may have already corrected this issue. Thank you. MT Link to comment Share on other sites More sharing options...
Solution hozawa Posted July 12, 2017 Solution Share Posted July 12, 2017 iReport does not support Java8. To use Java8, you'll need to use Jaspersoft Studio 6 or higher. The error message you'll getting seems to be that you have a scriplet that is using Java7. Convert your scriplet to Java8. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now