Need urgent help with updating path variable based on JAVAHOME registry key ...

Need urgent help with updating path variable based on JAVAHOME registry key ...

Post by mmartinc » Thu, 07 Aug 2003 11:40:15


As part of an installation package I am creating, I need to update a
batch file that sets PATH and CLASSPATH variables. The installation
path for JRE executable is provided as a directory by the user as
he/she is prompted for download destination for JDK. After JDK is
donwloaded, my installation package continues by updating the batch
file.

I was wondering if there is a way I can read the JRE download
directory value so that I can update the path variable. I realize
JAVAHOME holds the installation path for JRE, but I am not sure how to
fetch the value and use it to update the path.

set path=C:\jdk1.3.1_01\bin;%PATH%;
set classpath=C:\myAPPLICATION\Myapp\myApp.jar;%classpath%


By the way, I am using WISE installbuilder and within the WISE script
I need to update the PATH variable during run time (as Java2 SDK gets
downloaded at a directory specified by the user).

Any help appreciated.

Martin