You can run the TomCat server through the IDE or you can also run it manually:
- On Linux, you can set CATALINA_HOME and run startup or shutdown, something like
this (update the version number):
export CATALINA_HOME=/yourpath/catalina/jakarta-tomcat-3.3.2
$CATALINA_HOME/bin/startup
$CATALINA_HOME/bin/shutdown
- On Windows, you can create a batch file or update the environment variables for your OS. The download should include .bat files to help setup and run. You may have to update them to match your installation. Please see one of the TA's if you need assistance. Don't forget to update your version numbers to match what you have installed.
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07
set PATH=%JAVA_HOME%\bin;%PATH%
set TOMCAT_HOME=c:\tomcat332
set CLASSPATH=.;c:\tomcat332\lib\common\servlet.jar;z:\tomcat332\webapps\examples\WEB-INF\classes;
c:\tomcat332\bin\startup
Run the batch file to start/shutdown Tomcat.
Once you have it installed and running, enter the URL below into your browser and you will have access
the the code examples: