It does not use catalina.bat. If you look in catalina.bat, you will see the same command line used in your menu shortcut.
Change your menu target to include the "-Dmy.var.name=my.var.param".
John
On Mon, 16 Jun 2003 11:45:23 +1000, Chisholm, Paul <[EMAIL PROTECTED]> wrote:
I am using 4.1.24 in Win 2000. I pass an environment variable to Tomcat by adding
set JAVA_OPTS=-Dmy.variable.name=.......
to catalina.bat and all is fine when I start Tomcat from a script that calls "bin/startup.bat". However, if I start Tomcat from the menu item that is automatically created during installation it does not find the environment variable. The target in the menu item shortcut is
"......\java.exe" -jar -Duser.dir="c:\jakarta-tomcat-4" "c:\jakarta-tomcat-4\bin\bootstrap.jar" start
Does this not use catalina.bat? Do I need to set the environment variable at a different location?
Thanks, Paul
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]