What I've figured out is that you can hack the registry and modify the java.class.path parameter. Alternatively, there is a syntax for installing the service where you can specify the classpath when you install the service (or you could uninstall and re-install).
How to hack the registry: use regedit to edit key HKLM\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\JVM Option Number 0 (assuming your service is called "Apache Tomcat 4.1" and that your JVM Option Number 0 parameter data begins with -Djava.class.path...) Double-click the parameter and edit the classpath at will. How to install a new service: open a command prompt and use syntax %CATALINA_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1" "%JAVA_HOME%\jre\bin\client\jvm.dll" -Xmx512m -Xms256m -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar" -Dcatalina.home="%CATALINA_HOME%" -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -err "%CATALINA_HOME%\logs\stderr.log" (all on one line, and obviously modifying the -Djava.class.path to whatever you need but not losing the bootstrap.jar) If you install multiple Tomcats on one box as services, you will need a different server.xml file for each to specify different ports. I *believe* the syntax for this is to edit the service in the Services control panel, and add an "Additional Parameter" of the form -config conf\server.xml Hope that helps. If anyone else has more good information, please add. Andrew Longley -----Original Message----- From: Ernesto Echeverria [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 8:40 AM To: [EMAIL PROTECTED] Subject: Tomcat 4 as a service in Windows and Classpath Question I've recently installed Tomcat 4.1 as a service in a Windows 2000 environment. In Linux, if I ever need to extend the CLASSPATH variable, I can do that easily in the scripts provided. However, I'm not clear how to do this in Windows when Tomcat was installed as a service. What is the correct way to extend CLASSPATH, and if the service needs to be reinstalled, what would be the command in order not to loose the default settings, plus the extra paths? Thanks in Advance. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]