Home News Products Online Demo Shop Contact CSCare Inc.

Sales & Ordering

Tomcat 3.2.4, 3.3.1a, 4.0.1, 4.1.18 and 5.0.16 - how to run it as service with JWinSvc

Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. It is available from http://jakarta.apache.org/tomcat/.

In order to install Tomcat as service with JWinSvc, please follow these steps:
  1. Copy JWinSvc.exe into the "bin" subdirectory of the Tomcat root directory (e.g. C:\Jakarta-Tomcat-3.3.1a\bin).
  2. Then download a zip file for the following Tomcat versions: 3.2.4, 3.3.1a, 4.0.1, 4.1.18 and 5.0.16. These files contain the necessary batch files needed to install, run and eventually uninstall Tomcat as NT service with JWinSvc.
  3. Unzip the file and copy the content of the "bin" folder into Tomcat root directory's "bin" folder.
  4. JAVA_HOME environment variable is required to be set. Start the Command Shell and type "set". The set environment variables will be displayed in the console window. If JAVA_HOME is not present, add it by typing

    set JAVA_HOME="<path to JRE or JDK on your system>"

    e.g. set JAVA_HOME="C:\jdk1.4.1_01"

  5. Finally, run "installsvc.bat" to install Tomcat as service.
  6. To uninstall Tomcat as NT service with JWinSvc, run "uninstallsvc.bat".
Note: In order to change the service name, description or logging, please edit variables at the top of the "tomcatsvc.bat" file (see the comments inside).
Trap Console JWinSvc