>I am using Tomcat 4.1 and that only has servlet.jar
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^

Depends on how you run javac, but if this works, then it's really the
classpath problem. Tomcat's classpath may be different from the one in
your command shell.

javac -cp c:\PATH_TO\common\lib\servlet.jar yourpackages\yourfile.java


HTH.

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas A&M University



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to