Try this:

Open the tomcat console for widows (Start->ALL Programs -->Apache
Tomcat 5.X--> Monitor Tomcat).
click on JAVA tab (the fourth one)
Add the parameter in JAVA Options:

*-Djavaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar *

now you can access the above property in your code

Thanks
Ashish Shrivastava
Software Engineer
Impetus Infotech Ind Pvt Ltd Indore
India



On 2/23/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

> From: legolas [mailto:[EMAIL PROTECTED]
> Subject: how to pass a parameter to tomcat startup in windows?
>
> 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.

The .bat files are included in the .zip download, but not the .exe, for
some unknown reason.

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

Best bet is to use the .zip download; probably easier to debug than
running Tomcat as a service.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to