I'm trying to compile a simply servlet on Tomcat, but ran into a problem.
First, I believe you need to javac -classpath CATALINA_HOME/common/lib/servlet.jar ClassName.java Sounds simple, but where do I download servlet.jar? I went to the Sun site, downloaded j2eesdk-1_4_02_2005Q2-windows.exe, but no servlet.jar.
$CATALINE_HOME is where you installed Tomcat. The jar files are part of the Tomcat distribution.
Btw, on UNIX systems, don't forget the $. It translates the environment variable CATALINA_HOME to its definition. On Windows, I believe you need to surround it with %. [ August 07, 2005: Message edited by: Bear Bibeault ]