opening IReport getting error message - "Cannot find java exe."

user5491552 picture user5491552 · Oct 27, 2015 · Viewed 23.8k times · Source

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?

Answer

Myk Agustin picture Myk Agustin · Oct 27, 2015

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