Java – How to install Tomcat on Windows XP


I'm having trouble installing Tomcat on my windows XP machine. I already have Apache and JDK 6 installed, what I need to know is:

  • Which file to download from the Lastest Tomcat download page

  • And how to install it so I can run the sample web app by going to http://localhost/

In my C:\Program Files\Java folder, I see the following folders, this should give you an idea of whether I need any additional stuff installed:

  • jdk1.6.0_10
  • jre1.6.0_04
  • jre1.6.0_06
  • jre1.6.0_07
  • jre6


Best Solution

Tomcat 6 doesn't really need the full JDK and it runs with Java 1.5 as well, so Java wise you should be well off. Just make sure that JAVA_HOME environment variable is set.

You can either get the core zip or tar.gz file, or the Windows Service installer file.

Core zip file:

Just unzip it and run bin/startup.bat. If you'd like to install it as a Windows service (and get the "usual" program entry in Windows add/remove programs) you can get the Windows Service Installer file instead:

By default tomcat listens to port 8080, so to check out the sample apps you need to go to http://localhost:8080/examples/. You can change the default port by editing server.xml in the conf directory.