First of all you will need administration privileges to install service. This step by step guide is for standalone zip version of Tomcat Server.
- Navigate to
binfolder of your tomcat installation. You should have in folder three files among others:
tomcat7w.exe. If you are using older Tomcat Server than these files should be
- If these files are not there then you have to manually add them. First figure out which version of Tomcat you have. Also define architecture 32 bit/64 bit.
After that go to http://tomcat.apache.org/download-70.cgi or http://tomcat.apache.org/download-60.cgi and download the right zip file.
If you are using older versions than you have to look in
http://archive.apache.org/dist/tomcat/tomcat-6/ for zip file.
- In downloaded zip navigate to Tomcat
bindirectory and copy
tomcatXw.exe. files to your Tomcat installation. You can remove downloaded zip now ;).
- Stop Tomcat Server if running.
cmdwith Administrator privileges and navigate to Tomcat’s
bindirectory where you should now have all three files.
service.bat install. Your service should be installed with name Tomcat7 or Tomcat6.
Following instructions can be found here: http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html.
- After that run
tomcatXw.exe //ES//(X is Tomcat major version) A new window should pop up.
- The next step is important for successful running Tomcat with Windows service.
Increase “Initial memory pool” and “Maximum memory pool”.
- Add new line “Java Options” section. This will increase Java heap size. This setting is very important as running Tomcat as service will override all other settings except those.
- Start Tomcat as a service in Windows Services. Run
services.mscor access it from Tak Manager (Services tab).
This way you can automatically run Tomcat Server after reboot without logged in user.