Tomcat

Download: http://tomcat.apache.org/download-70.cgi

As of this update (12/01/2011) the Tomcat link above will display the 7.0.23 version release. You can find previous versions of Tomcat at the same location. In the Binary Distributions section chose the Tomcat version that works on your computer. The final Tomcat folder location will depend on which version you downloaded. The 64-bit version would go into the “C:\Program Files”. The 32-bit version will go into the “C:\Program Files (x86)” folder. Please adjust the locations in the following paragraph accordingly.

After downloading, right click on the zip file and choose Extract All. Browse to “C:\Program Files”; the extraction process will create the “apache-tomcat-7.0.23” folder. If you extract the files to the default folder (which will be the folder where the zip file is located) create the following folder C:\Program Files\apache-tomcat-7.0.23 and move or copy the extracted files to it. The version numbers ("7.0.23") should reflect the version you downloaded. Due to the wonders of Windows 7 security it may be easier to extract to the default folder and copy the files.

There are a couple of steps to associate Tomcat with Eclipse and your project. These will be discussed in the upcoming Eclipse section.

Unlike earlier environments, you no longer have to change the system environment variables to run Tomcat inside Eclipse. If this is your first try at setting up a development environment, you should probably take advantage of this change and forego setting up Tomcat so it will also run outside of Eclipse. However, if you previously created a Java/Tomcat/Eclipse/MySQL environment on your current computer you should update or delete the following entries in the system environment variables.

Changes to the environment variables are made at the following location: Control Panel / System / Advanced System Settings / Environment Variables. You can create, update, and delete system variables in the lower part of the window that pops up.

To run Tomcat outside of Eclipse you will need the CATALINA_HOME variable set in the System Variables section in the bottom half of the Environmental Variables window. The JAVA_HOME variable will also need to be set -- that's in the Java section of this tutorial. You don't need the Classpath and Path variables set.

Classpath: C:\Program Files\apache-tomcat-7.0.23\lib\servlet-api.jar
C:\Program Files\apache-tomcat-7.0.23\lib\jsp-api.jar;

Path: C:\Program Files\apache-tomcat-7.0.23\bin

CATALINA_HOME: C:\Program Files\apache-tomcat-7.0.23

Restart the workstation for the environment variable changes to take effect.