Reputation:
My report works fine in my computer but When Opening an IReport File in Java on another computer,
I keep getting error message -
"Cannot find java exe."
or
"Neither (null)\\jre\\bin\\java.exe nor (null)\\vin\\java.exe exists"
I am Using IReport portable. What could be the problem?
Upvotes: 10
Views: 39386
Reputation: 160
Upvotes: 0
Reputation: 19
If you use Ubuntu:
Install JDK 7: sudo apt-get install openjdk-7-jdk
Config path jdk in file ireport.config (in forder: "package that you downloaded"/etc/):
default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
jdkhome="/usr/lib/jvm/java-7-openjdk-amd64"
!Note: NOT --jdkhome="/usr/lib/jvm/java-7-openjdk-amd64"
Upvotes: 0
Reputation: 123
First of all iReports 5.6.0 will work on jdk 1.7.x.x it will not work on jdk 1.8.x.x therefore first you will have to install jdk 1.7.x.x
Then goto the folder where the jasperreport is installed. eg:C:\Program Files (x86)\Jaspersoft\iReport-5.6.0\etc then edit the "ireport.conf" file.
edit the file with notepad and change the following line to this.
Indicate the version of your installed JDK and also make sure to remove the "#" symbol or it will not work
Upvotes: 9
Reputation: 21
I had a similar problem with the non-portable version. In my case, the machine had a 64-bit version of Java and a 32-bit version of iReport, which led to the cryptic error message you encountered. Installing the 32-bit version of Java on that machine solved the problem.
Upvotes: 1
Reputation:
You will have to locate your IReport's ireport.conf file and edit it
Open it then change the line jdkhome="/path/to/jdk"
(i.e. jdkhome="c:Program Files/Java/jre7"
- where your jdk / jre (version) file is located)
Upvotes: 2
Reputation: 790
This is because jdkhome is not setup yet or jdkhome cannot locate your jdk file in the system. all you have to do is:
-setup jdkhome in ireport's ireport.conf file
jdkhome="/path/to/jdk"
jdkhome="c:Program Files/Java/jre7"-file to jdk
Upvotes: 12