Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

how to pass a parameter to tomcat startup in windows?

Legolas Woodland

2007-02-22

Replies:


Hi
Thank you for reading my post.
I need to pass a parameter like :
-javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar to tomcat startup.
the tutorial talks about a bat file that we can add this parameter to it but
Tomcat 5.5.17 for windows does not has any +batch file.
It just has two executable files named tomcat.exe and tomcatW.exe . I have
tried to add the parameter in java tab after


-Dcatalina.home=f:\dev\apps\Tomcat 5.5.17
-Dcatalina.base=f:\dev\apps\Tomcat 5.5.17
-Djava.endorsed.dirs=f:\dev\apps\Tomcat 5.5.17\common\endorsed
-Djava.io.tmpdir=f:\dev\apps\Tomcat 5.5.17\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=f:\dev\apps\Tomcat
5.5.17\conf\logging.properties


But when i add that parameter here, tomcat does not start.

can you please tell me where and how i should add that parameter ?


Thanks

--
Sent from the Tomcat - User mailing list archive at Nabble.com.
©2008 junlu.com - Jax Systems, LLC, U.S.A.