tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Environment variables
Date Mon, 16 Jun 2003 12:43:11 GMT

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 
<Paul.Chisholm@AirservicesAustralia.com> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message