source: trunk/gsdl3/resources/tomcat/setclasspath.bat@ 11288

Last change on this file since 11288 was 11288, checked in by kjdon, 18 years ago

moved here from packages/tomcat-extra

  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1rem ---------------------------------------------------------------------------
2rem Set CLASSPATH and Java options
3rem
4rem $Id: setclasspath.bat 11288 2006-02-17 03:59:41Z kjdon $
5rem ---------------------------------------------------------------------------
6
7rem Make sure prerequisite environment variables are set
8if not "%JAVA_HOME%" == "" goto gotJavaHome
9echo The JAVA_HOME environment variable is not defined
10echo This environment variable is needed to run this program
11goto exit
12:gotJavaHome
13if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
14if not exist "%JAVA_HOME%\bin\javaw.exe" goto noJavaHome
15if not exist "%JAVA_HOME%\bin\jdb.exe" goto noJavaHome
16if not exist "%JAVA_HOME%\bin\javac.exe" goto noJavaHome
17goto okJavaHome
18:noJavaHome
19echo The JAVA_HOME environment variable is not defined correctly
20echo This environment variable is needed to run this program
21echo NB: JAVA_HOME should point to a JDK not a JRE
22goto exit
23:okJavaHome
24
25if not "%BASEDIR%" == "" goto gotBasedir
26echo The BASEDIR environment variable is not defined
27echo This environment variable is needed to run this program
28goto exit
29:gotBasedir
30if exist "%BASEDIR%\bin\setclasspath.bat" goto okBasedir
31echo The BASEDIR environment variable is not defined correctly
32echo This environment variable is needed to run this program
33goto exit
34:okBasedir
35
36rem Set the default -Djava.endorsed.dirs argument
37set JAVA_ENDORSED_DIRS=%BASEDIR%\common\endorsed
38
39rem Set standard CLASSPATH
40rem Note that there are no quotes as we do not want to introduce random
41rem quotes into the CLASSPATH
42set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%
43
44rem Set standard command for invoking Java.
45rem Note that NT requires a window name argument when using start.
46rem Also note the quoting as JAVA_HOME may contain spaces.
47set _RUNJAVA="%JAVA_HOME%\bin\java"
48set _RUNJAVAW="%JAVA_HOME%\bin\javaw"
49set _RUNJDB="%JAVA_HOME%\bin\jdb"
50set _RUNJAVAC="%JAVA_HOME%\bin\javac"
51
52goto end
53
54:exit
55exit /b 1
56
57:end
Note: See TracBrowser for help on using the repository browser.