How to install apache tomcat server on windows

Published on April 18, 2012


Apache Tomcat can be installed in two ways.

Tomcat 7 with Eclipse

Manual Tomcat 6 without Eclipse.

But, in most educational institutions without Eclipse is recommended.

Procedure:

  1. Install Java. Make sure you have Java installed. Details here.
  2. Unzip Tomcat. Unziptomcat-6.0.28-preconfigured.zip into the top level of the C drive. Details here.
  3. Set JAVA_HOME. Set this environment variable to point at the top-level of your Java installation directory (e.g., C:\Program Files\Java\jdk1.6.021). Use the Control Panel or see this sample autoexec.bat file. Details [here](http://www.coreservlets.com/Apache-Tomcat-Tutorial/#JAVAHOME).
  4. Set CLASSPATH. Set this environment variable to include “.”,C:\Servlets+JSP, and the servlet/JSP JAR files. Use the Control Panel or see thissample autoexec.bat file. Details here.
  5. Test the server. Make sure you can start/stop the server. Test some sample HTML files, JSP pages, and servlets. Details here.


← All blog posts

All rights reserved mhotspot.com