[izpack-users] How to or where to set JAVA_HOME on Windows so that JDKPathpanel is skipped?

Bartz, Klaus Klaus.Bartz at coi.de
Mon Apr 10 09:03:14 CEST 2006


Hi Sagar,
the JDKPathPanel does not resolve the environment variable JAVA_HOME else it uses 
the buildin IzPack variable JAVA_HOME which will be resolved by System.getProperty("java.home"));
and from this the parent.
This results, that the JDK will only be detected if the JRE which is placed in your JDK will be used
as VM of the installation. To test it:
Add infront of your system environment variable PATH
C:\j2sdk1.4.0.2\JRE\bin
and test.
I assume, that your Windows installationen uses an JRE which is not placed in the JDK (the default
installation installs two JREs on Windows....), the Linux uses the JRE in the JDK.
 
Cheers
 
Klaus
 

-----Original Message-----
From: izpack-users-admin at berlios.de [mailto:izpack-users-admin at berlios.de]On Behalf Of sagar shah
Sent: Friday, April 07, 2006 9:38 AM
To: izpack-users at lists.berlios.de
Subject: [izpack-users] How to or where to set JAVA_HOME on Windows so that JDKPathpanel is skipped?


Hi all,
I have created a jar which  uses JDKPathpanel. I am running this jar on Windows machine. I have set the JAVA_HOME environmental variable to jdk like C:\j2sdk1.4.0.2 and not to jre or bin. When I run the jar the JDKPathPanel is shown everytime. It is supposed to skip but it does not. 
If I try to run the same jar on  Linux machine where the JAVA_HOME is set to /usr/java/j2sdk1.4.2, the JDKPathPanel is skipped as expected. This should be the behaviour on windows machine also.
But I am not getting how to avoid that JDKPathPanel. Am I doin right or not? Please correct me if I am doin wrong.

How to fix this issue? Waiting for reply.
Thanks in advance. And one more thing I would like to congratulate Fabrice sir on his wedding..


Sagar Shah.
email : sagarbs at gmail.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20060410/37a85a8d/attachment.html 


More information about the izpack-users mailing list