Monday, August 3, 2009

Installing Apache Tomcat on Windows

Download Apache Tomcat

Download archive from Extract archive to selected path for example: d:\java\apache-tomcat-6.0.20

Set Java Environment

Check your java version: "java -version" My Computer -> System Properties -> Environment Variables -> set JAVA_HOME to C:\Program Files\Java\jdkX.Y.Z_ZZ and set JRE_HOME to C:\Program Files\Java\jdkX.Y.Z_ZZ\jre

Start Apache Tomcat

From start menu -> Run and enter "cmd" Navigate to you Apache Tomcat bin directory for example: "d:" "cd D:\java\apache-tomcat-6.0.20\bin" "start apach-tomcat" "startup.bat" you should see something similar to the following picture:

Open your browser

Navigate to address: http://localhost:8080 you should see result page like one in the following screen shot:

Troubleshooting Apache Tomcat install

Check if 8080 port is free run "netstat -an" and check if nothing listens to port no. 8080 if some program uses 8080 port you can check which by using Microsoft tool TCPView

Best Regards,

P.S. What ever you do try to have fun ;)