Hi Everyone -
I'm new to iReport... I have a new Windows 7 PC with very few programs installed (except MS Office 2007, Visual Studio 2008 and Visual Foxpro 9.2 )machine... I installed the latest build of iReport (Windows stand-alone version).
Everything appeared to install correctly ... however.. when I attempted to run the program, I get the following error:
"Cannot find java exe."
"Neither (null)\\jre\\bin\\java.exe nor (null)\\vin\\java.exe exists"
My question is: Even though I installed the "stand-alone" version ... do I have-to install additional files?
If so... which, and where can I find them?
Thanks for any help you can give me!
- Log in or register to post comments
12 Answers:
Thank you very much for your response...
I had to "ADD" the Environmental variable... to the system properties... as it was not in the list at all ... however... nothing happened...
When I try to run iReport... I still get the "Cannot find Java.exe..." error.
Moreover... I don't even have the directory referenced in the environmental variable you suggested I add... iReport didn't install that directory (see attached picture of my directory) ...
Do I need to install JasperServer and/or JasperReports, in addition to iReport... to get the necessary support files to run iReport?
Thanks again ... !
Post Edited by tomking23 at 02/15/2010 03:24
I'm using win 7 64bit. I installed iReport 4.5 (release on today - 8 Dec 2011) & it brings to me the same result.
As what I see:
+Reason:
The iReport (in "C:Program Files (x86)JaspersoftiReport-4.5.0binireport.exe" for my case) look up absolute name of jre & jdk folders (not something like jre7 or jdk1.7.0_01 folder in installed Java folder, in this case I install the Java Platform (JDK) 7u1)
+ Solution
1st way:
set JAVA_HOME in system variables to your installed Java folder but you have to be sure there are absoulte jre & jdk folders not the jre_x/jdk_x where x is the verion of java runtime as stated above)
I prefer the 2nd way which is more flexible & can allow to use multiple java runtime
2nd way:
Set up the jdkhome in (installed Jaspersoft folder)iReport-4.5.0etcireport.conf to your installed Java folder.Example for my case:
step1: create a new folder, eg: "C:Program FilesJavaforJasper45"
step2: copy jre7 & jdk1.7.0_01 to that folder then rename to jre & jdk repectively
step3: add this line in the ireport.conf
jdkhome="c:Program FilesJavaforJasper45"Then it works for me
Code: |
Here is the content of my ireport.conf file: # ${HOME} will be replaced by user home directory according to platform default_userdir="${HOME}/.${APPNAME}/4.5.0" default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/4.5.0" # options used by the launcher by default, can be overridden by explicit # command line switches default_options="--branding ireport -J-Xms256m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level=1000 -J-XX:MaxPermSize=512m" # for development purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea # default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch #jdkhome="/path/to/jdk" jdkhome="C:Program FilesJava4StupidJasper45" # clusters' paths separated by path.separator (semicolon on Windows, colon on Unices) #extra_clusters= |
Post Edited by aoopvn at 12/09/2011 06:02
Post Edited by aoopvn at 12/09/2011 06:03
SET Environment Variable with:
JAVA_HOME = E:\Program Files\Java\jre7
or C:\Program Files\Java\jre7
where java.exe can be found in X:\Program Files\Java\jre7\bin\java.exe
u just see this video on youtube: https://www.youtube.com/watch?v=U0Pm71_dL_8
it's so helpfull
It works.... check this link
https://www.youtube.com/watch?v=U0Pm71_dL_8Hi
This is because it needs the JRE (Java Runtime Enviroment) which is not installed on your pc or if it is installed then the environment variables are not set.
Solution
Hard = Set the environment variables which most people don't know i dont mean every one so dont get me wrong.
Easy = Install the latest JRE from this link https://www.java.com/en/download/
The installation will set every thing and you are done and good to go.