Cannot find java.exe

1

When i run application, the system show this error.

 

I have installed iReport in C:\Program Files (x86)\Jaspersoft\iReport-4.8.0

and Java is in C:\Program Files\Java\jre7\bin

 

nando2412's picture
Joined: Nov 16 2012 - 3:12am
Last seen: 6 years 6 months ago

3 Answers:

12

You need to set JDK path in config file.

See below the path that should be something like this..

C:\Program Files (x86)\Jaspersoft\iReport-3.7.0\etc

In the 'etc' folder you will find the config file where you have to set the jdkhome like this (jdkhome="C:\\Program Files\\Java\\jdk1.6" ).And you have to give jdk path not jre. Do check you have installed jdk.However your mentioned path does not show that to me.

rubamushtaq's picture
Joined: Nov 13 2012 - 8:37pm
Last seen: 6 years 1 month ago
4

You need to specify the location of your JDK in a file called ireport.conf  found in for example if using 64 bit, then just check in the Program File (x86)\Jaspersoft\iReport.x.x.x\etc\  you can open with Notepad or WordPad (if you want the text to be in a nice order)

read through the document until you find the statement #jdkhome = "path/to/jdk" and just below that add the following statement below that one:

jdkhome = "C:\\Program Files\\Java\\jdk.x.x.x  and do not go any further than that as one would usually do for example by extending into the \\bin folder DONT DO THAT.

This should get you going.

Huey Mataruse's picture
Joined: Jul 17 2013 - 4:25am
Last seen: 5 years 10 months ago
2

Hello

I have thi problem. I apply this solution, but I have a new problem :

It don't find C:\\\\Program\jre\bin\java.exe, but I have write : jdkhome="C:\\Program Files\\Java\\jdk"

Have you an idea ?

 

thomas.auriel.w's picture
Joined: Sep 18 2013 - 11:03am
Last seen: 5 years 8 months ago

The answer given to the "cannot find java.exe in specified jdkhome" worked. Thanks

edekinathaniel - 5 years 5 months ago

In Unix even after giving the JAVA_HOME path in config file iReport still is not working for me. Any solution for this.?

aditya.calangutkar - 4 years 3 months ago

yes make it default by clicking on 'Oui' button.

raja.ferox - 3 years 6 months ago
Feedback