Hey,
javac -classpath /your path/tomcat/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java
This command is trying to compile the
servlet Ch1Servelet.java. HEre -classpath option is including the classes the servlet-api.jar into the classpath for successful compilation of the servlet. Make sure -classpath <Servlet-api.jar Path> is correct and does include the jar file.
Next time, try to give as must information with the query so that it becomes easier to answer the query.
[ January 12, 2008: Message edited by: Deepak Jain ]