grl Posted September 15, 2014 Share Posted September 15, 2014 I have created a simple .jar with a class to process a parameter in my Jasper report via scriptlets. I have added the .jar to the build path of the report project. The .jar has been compiled with JDK 1.7, and the execution enviroment of the Jasper project is set to JRE 1.7, and also the Java Compiler compliance level is 1.7. JAVA_HOME points to jdk 1.7.Still JasperStudio complains of Unsupported major.minor version 51.0 when trying to access the .jar code through the scriptlet parameter. Is JasperStudio using jdk 1.6 ?! To check on this, on a separate report, I included a textfield just to print out the java version being used, and Iset the textfield’s expression to System.getProperty("java.version”). It printed 1.6.0_65. There is sth about JasperStudio evidently that still is overriding my jre/jdk choices, but I do not know where/how. Please send me your suggestions on where to look. Thanks a million Link to comment Share on other sites More sharing options...
htshozawa Posted September 15, 2014 Share Posted September 15, 2014 Did you try writing a simple program to output JDK version being used?Also, what is the exact error message? Link to comment Share on other sites More sharing options...
grl Posted September 16, 2014 Author Share Posted September 16, 2014 I found this link to provide the solution: http://community.jaspersoft.com/questions/825226/jaspersoft-studio-macos-failed-create-java-virtual-machine Link to comment Share on other sites More sharing options...
grazia.russolassner Posted September 22, 2014 Share Posted September 22, 2014 Sorry for the late reply, I got sidetracked by other projects. the reports in JasperStudio are using java 1.6.0_65, but what is bringing this jdk into play. I do not have that jdk installed. Is it the jasperreports.5.6.1.jar ? 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