Jon Wingfield ha scritto:
No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME
Go to Control Panel \ System \ Advanced tab \ Environment variables...
Well, that's where it is on XP, which i'm currently running.
HTH,
Jon

I don't think is a good approach, at least for me. An environment variable is accessible to all java programs. Modifying the script affects only tomcat.
Bye


Giorgio



Giorgio Ponza wrote:


Hi
usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this


REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt
set JAVA_OPTS=-server -Xms64m -Xmx64m


echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
echo Using JAVA_HOME:       %JAVA_HOME%
echo using JAVA_OPTS:       %JAVA_OPTS%

it is used later in lines like
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% ....

Hope i helped u
bye

Giorgio





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--
-----------------------------------------------------------------------
Giorgio Ponza
Web Developer
Opla.com Ltd
Tel. +39 011 7506233
Fax. +39 011 746179
http://www.opla.it
-----------------------------------------------------------------------
Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to