 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martin Guest
|
Posted: Wed Aug 06, 2003 2:40 am Post subject: Need urgent help with updating path variable based on JAVAHO |
|
|
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_01bin;%PATH%;
set classpath=C:myAPPLICATIONMyappmyApp.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
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|