ctkrm Posted October 29, 2009 Share Posted October 29, 2009 Hi there. So, I decided to switch from 3.6.0 -> 3.6.1. I uninstalled, the old version, and reinstalled the new version. That's the only thing I did, and all older versions of iReport have been running fine. However, when I go to run 3.6.1 i get the error: JDK 5.0 or newer cannot be found on your machine . Is there a config I can modify (and what entry do I need)? Some other info:XP Sp2iReport 3.6.1 installed with the windows installer to C:\iReport-nb-3.6.1JDK is at C:\Sun\SDK\jdkCode:C:\> java -versionjava version "1.6.0_16"Java(TM) SE Runtime Environment (build 1.6.0_16-b01)Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode) Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted November 2, 2009 Share Posted November 2, 2009 Hi ctkrm,this is a very interesting bug which I would like to understand exactly where it comes from and fix it.iRepot (actually a generic NetBeans application) looks for a suitable jvm on your system in the following Registry keys:Software\\JavaSoft\\Java Development KitSoftware\\JavaSoft\\Java Runtime EnvironmentI definitively will consider to add to the search path the JAVA_HOME system variable.Can you check if one of there registry keys are set or not?Finally, you can specify manually the java installation to use by specifying the jdk home on the command line (or even in the <ireport>/etc/ireport.conf file).c:\Program Files\JasperSoft\iReport-nb-3.6.1\bin>ireport_w -hUsage: launcher {options} argumentsGeneral options: --help show this help --nosplash do not show the splash screen --jdkhome <path> path to JDK -J<jvm_option> pass <jvm_option> to JVM --cp:p <classpath> prepend <classpath> to classpath --cp:a <classpath> append <classpath> to classpath ThanksGiulio Link to comment Share on other sites More sharing options...
ctkrm Posted November 2, 2009 Author Share Posted November 2, 2009 Thanks for the help giulio. Your suggestion worked a treat, launching from the command prompt with:C:>iReport-nb-3.6.1binireport_w.exe --jdkhome C:SunSDKjdk You were also correct about the registry keys, they are missing on my system. They were most likely removed when I was tidying up my java installations (I had 3 at one point on this workstation, it's a long story, but I consolidated to just the one shown above). The only key in the SOFTWARE\JavaSoft listing is one called: InstallerVersion Type REG_SZ Data: 1.6.0_15-b71. There are no paths listed under it except for one empty one called 'Prefs' Thanks again for the assistance, I've adjusted my shortcuts to include the --jdkhome option. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now