You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Frank Gynnild <fr...@socg.no> on 2002/05/01 17:04:14 UTC
Setting Classpath when using the "Start Tomcat"-shortcut doesn't
seem to work
I've just started digging into Tomcat 4 (4.0.3), and after installing
it, I got
atleast two options to start it:
1) From the "Start Tomcat" shortcut
2) Using the startup.bat.
Using option 2) I edited the CLASSPATH in 'setclasspath.bat' and that
works fine.
But with option 1), it won't take my CLASSPATH either from the
-classpath argument of the java.exe, or from the System Enviroment
CLASSPATH-variable. The original shortcut
which the Tomcat installation provided looked like this:
C:\Stuff\Java\jdks\1.4.0\bin\java.exe -jar
-Duser.dir="C:\Stuff\Java\tomcat\4.0.3"
"C:\Stuff\Java\tomcat\4.0.3\bin\bootstrap.jar" start
And I tried changing it to:
C:\Stuff\Java\jdks\1.4.0\bin\java.exe -classpath
"C:\stuff\java\classlib" -jar -Duser.dir="C:\Stuff\Java\tomcat\4.0.3"
"C:\Stuff\Java\tomcat\4.0.3\bin\bootstrap.jar" start
But in either case a 'System.getProperty("java.class.path")' from one of
my JSPs returns only 'C:\Stuff\Java\tomcat\4.0.3\bin\bootstrap.jar'.
Does anyone know why?
Thanks,
Frank Gynnild
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>