tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Kim <b...@coe.tamu.edu>
Subject RE: class path (UNCLASSIFIED)
Date Tue, 12 Apr 2005 20:34:17 GMT

>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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message