LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Tomcat: package javax.servlet does not exist (https://www.linuxquestions.org/questions/linux-software-2/tomcat-package-javax-servlet-does-not-exist-426889/)

xpucto 03-21-2006 06:45 AM

Tomcat: package javax.servlet does not exist
 
I've just installed Tomcat with apache on RH9. Everything seems to work
except when I try to compile a servlet, I ge the error message:
Quote:

package javax.servlet does not exist
I have tis problem eventhough I set the classpath
Quote:

echo $CLASSPATH
/opt/SUNWappserver/jdk/lib:/opt/apache-tomcat/common/lib:/opt/apache-tomcat/bin
if i do
Quote:

javac -classpath /opt/apache-tomcat/common/lib/servlet-api.jar servlet_test1.java
, then it works.
What did I do wrong?


All times are GMT -5. The time now is 09:34 PM.