You will need to modify the ireport.conf file to indicate the JDK that you want to use iReport.
Passing the installation of Windows 7 x64 will determine the default path to x86 program files. I.E. "Program Files (x86)" Change this to "Program Files", then make changes to the configuration file.
You will find the ireportpro.conf file in [ireport_install_directory] \ etc \ ireportpro.conf. If you installed iReport with the installer, there is an ireport folder in the folder where you installed JasperReports Server.
There are two lines in this file:
Uncomment the jdk home setting and point it to where you installed the 64-bit JDK 1.7. Change it:
jdkhome = "/ path / to / jdk"
Something like what you see below:
jdkhome = "C: \ Program Files \ Java \ jdk1.7.0"
I would also change the string "default_options":
default_options = "- J-Xms24m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level = 1000 -J-XX: MaxPermSize = 256m"
to what gives the JVM working with iReport more memory and a lower MaxPermSize value.
default_options = "- J-Xms1024m -J-Xmx1024m -J-Dorg.netbeans.ProxyClassLoader.level = 1000 -J-XX: MaxPermSize = 128m"
Enjoy it!
source share