Skip to content

AddTomcatService.bat

This is a script to simplify the installation of a Tomcat instance as a Windows service. When running this file please make sure you are "standing" in the same directory. It takes some arguments but they are not mandatory. If you run the script without any argument input it will create and install a service with the name of the parent directory to Tomcat.

If you have a directory structure as shown below the service installed will be named System1.

  • C:\Easit or /opt/Easit
    • System1
      • Tomcat
        • bin
          • AddTomcatService.bat

You can also install a Tomcat instance as a Windows service by using service.bat. AddTomcatService.bat actually use service.bat install the service.

In addition to installing the service, AddTomcatService.bat updates the Tomcat service with some additional java options needed for Easit GO to work correctly. These can be found in the CreateTomcat block in AddTomcatService.bat.

If the service is installed correctly an EXE-file named [systemName]w.exe is created. This is used to visually configure the Tomcat service. All changes made to the service via this GUI requires the service to restart before taking effect.

Windows Service How-To