Can I manual select JRE to startup iReport ?

I've installed jdk1.5.0_07 to C:\jdk1.5.0_07, and installed public JRE of it, and then set JAVA_HOME =C:\jdk1.5.0_07, and then add %JAVA_HOME%\bin to PATH environment variable.

Then I installed jdk1.6.0 to C:\jdk1.6.0, no public JRE installed of it.

Open any DOS console and type java -version, it report the right version I wanted: java version "1.5.0_07".

But when I started iReport from iReport.exe, click "Help"->"About iReport" -> "System properties", it shows me that all properties related JRE/JDK is 1.6.0, not 1.5.0_07, how can iReport so "intelligent" and how to manual choose JRE to startup it ?

By the way: If i startup iReport from %IREPORT_HOME%\bin\startup.bat, the JRE/JDK information is 1.5.0_07, that's what I wanted.


Thanks !
lovetide's picture
345
Joined: Jul 17 2006 - 11:19pm
Last seen: 10 years 4 months ago

4 Answers:

The exe was created using JSmooth.

http://jsmooth.sourceforge.net/

you can modify the file ireport/etc/ireport.jsmooth using JSmooth to force the use of a particular JVM.

to create the new exe simply:

ant exe

Giulio
giulio's picture
71619
Joined: Jan 2 2007 - 4:15pm
Last seen: 2 weeks 5 days ago
Hmm - in newer versions - iReport-nb-3.5.2 - has this procedure changed? I need to make sure iReport is running on a very recent JRE (1.6.0_14) in order to ensure OpenType font compatibility. I was not able to find a .jsmooth project file in the source distribution. -jason
jbuberel's picture
1204
Joined: Sep 3 2006 - 8:38am
Last seen: 16 years 9 months ago

Edit the file <ireport install dir>/etc/ireport.conf

there is a line to set a specific jre to use  (jdkhome="/path/to/jdk")

Uncomment it (removing the #) and set your favorite jdk. I assume you can use a jre too instead of a jdk.

Giulio

giulio's picture
71619
Joined: Jan 2 2007 - 4:15pm
Last seen: 2 weeks 5 days ago

thanks...

cyril.marut - 10 years 1 month ago

Thanks #Giulio !!
Thanks for your kind help.

ikziko - 7 years 10 months ago

awesome. thanks

alexeysheleg22 - 2 years 8 months ago
Perfect, thanks!
jbuberel's picture
1204
Joined: Sep 3 2006 - 8:38am
Last seen: 16 years 9 months ago
Feedback
randomness