Can I manual select JRE to startup iReport ?

1
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
Joined: Jul 17 2006 - 11:19pm
Last seen: 7 years 3 weeks ago

4 Answers:

0
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
29620
Joined: Jan 2 2007 - 4:15pm
Last seen: 11 months 3 weeks ago
0
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
Joined: Sep 3 2006 - 8:38am
Last seen: 13 years 4 months ago
3

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
29620
Joined: Jan 2 2007 - 4:15pm
Last seen: 11 months 3 weeks ago

thanks...

cyril.marut - 6 years 9 months ago

Thanks #Giulio !!
Thanks for your kind help.

ikziko - 4 years 6 months ago
0
Perfect, thanks!
jbuberel's picture
Joined: Sep 3 2006 - 8:38am
Last seen: 13 years 4 months ago
Feedback