This is a brief "how-to" for installing Tomcat on a Windows PC. The class examples in ECT 433 run on Tomcat version 4.1.x (4.1.27 is currently the most stable version). I have tested these steps on a Windows XP Professional computer but suspect that the procedure will be similar for other Windows computers. Tomcat can also be installed on Linux computers and all of the ECT 433 examples and assignments will work on that too. Since most Linux users will probably be able to work out the installation themselves, I don't cover the installation details for Linux here.
Tomcat requires java in order to run. If your computer already has java installed, you can probably skip this step. However, make sure you have a recent version of java. Here I provide instructions for installing version 1.4.2 of the Java 2 Platform, Standard Edition (J2SE).
Tomcat will need to know where you have installed java. To do this, you will need to set the environment variable JAVA_HOME to C:\j2sdk1.4.2_01 (where you installed java).
Here are the steps for setting the environment variable on my computer (Windows XP Professional). The steps will probably be similar for other Windows computers.
JAVA_HOME
C:\j2sdk1.4.2_01
After setting the JAVA_HOME environment variable, you can install tomcat.
Here are the steps to see if Tomcat has been successfully installed
http://localhost:8080/
At this point, you should see the Tomcat home page, which is
provided by the Tomcat Web server running on your computer. Note:
if your computer has an internet name or an IP number, you may
access your Tomcat server anywhere on the internet by substituting
localhost
with the full name or IP number.
To shut down your server and remove the Console window, select "Stop Tomcat" in the same menu of where you selected "Stop Tomcat".
Here are the steps for running the class examples discussed on the first day.
http://localhost:8080/ect433examples/rate.html
The computers in this lab already have java and Tomcat installed. The first time you use this lab, you will need to register for an account. Your account should have privileges for placing your Web application folder in the webapps folder (described above). However, in case you cannot stop and start Tomcat as described above, here is an alternate procedure.