Unable to start iReports 5.6.0 using Netbeans 8 and JDK 1.8

I installed Netbeans 8 with JDK version 1.8. I recently downloaded iReports 5.6.0 for reporting. After installation, the program does not open. An error has occurred:

Cannot find Java.exe Neither (null) \ jre \ bin \ java.exe nor (null) bin \ java.exe exists.

How can i solve this? I created my project using Netbeans8, and if I downgrade netbeans to version 7, or something does not change my GUI?

+5
source share
1 answer

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!

+8
source

Source: https://habr.com/ru/post/1203132/


All Articles