7 Answers:
This is really a simple question on how to use Java on Windows and doesn't concern JasperReports.
Nevertheless, check the following page on instruction on how to setup Windows to switch between different versions of JDK.
https://blogs.oracle.com/pranav/entry/switch_between_different_jdk_v
Thanks for responding. By way of comment, in case anyone has the same problem, I solve it by modifying the parameter JDKHOME = "C: \ Java \ jdk1.7.0_45" in ireport.conf file. Thus iReport starts with JDK 7 and my software works with JDK 8.
Thank you for sharing your solution with us.
For all others, ireport.conf file is in iReport\etc folder.
If you set your JDKHOME on ireport.conf you compile your reports with jdk 1.7 but if you have to load java bean datasource compiled with 1.8 you receive a "major minor version 52.0".
So this solution don't fix problem of jdk 8 and ireport compatibility!
persiste el error a pesar que realizo esas modificaciones
I found this on Stack Overflow, and it was the solution I was looking for. I hope it helps all of you!
There's another way if you don't want to have older Java versions installed you can do the following:
1) Download the iReport-5.6.0.zip from http://community.jaspersoft.com/project/ireport-designer/releases
2) Download jre-7u67-windows-x64.tar.gz (the one packed in a tar) fromhttp://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
3) Extract the iReport and in the extracted folder that contains the bin and etc folders throw in the jre. For example if you unpack twice the jre-7u67-windows-x64.tar.gz you end up with a folder named jre1.7.0_67. Put that folder in the iReport-5.6.0 directory:
and then go into the etc folder and edit the file ireport.conf and add the following line into it:
jdkhome=".\jre1.7.0_67"
now if you run the ireport_w.exe from the bin folder in the iReport directory it should load just fine.
In the previous post I forgot to indicate that eliminates the "-J-XX: MaxPermSize = 512m" File "ireport.conf" to see if this problem was solved, but the problem persists.