Friday, April 23, 2010

How to install tomcat as a service in windows 7 or windows vista

When installing tomcat 6 as a service in windows 7 or windows vista using the method we use in windows xp it fails, So what to do? The answer is:  
  • Press Windows+(Pause/Break), then press Advanced system settings, press Environment Variables, add a user variable with name : CATALINA_HOME, with value path to tomcat\tomcat6. Press Ok three times
  • Go to the desktop, right click, then New->shortcut, in Type the location of the item enter: path to tomcat\tomcat6\service.bat, click next then enter a name for the shortcut, press finish. In the desktop right click the shortcut then choose Properties, in the target add to it: install [name you want for tomcat], press Ok, then right click on it, and choose Run as administrator. 
  • go to services and tomcat will be added to the list, you can then set it to run automatically, and stop it or restart the service.

No comments:

Post a Comment