Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help cant find javax.servlet.*

Status
Not open for further replies.

awolff01

Programmer
Jun 17, 2003
55
0
0
US
I just installed tomcat and J2SDK 1.4.2.

I tried running a simple Hello World servlet using the packages

javax.servlet.*
javax.servlet.http


I its giving me compile errors. I searched my system and it looks like those packages are installed on my Linux machine.


How do I get these basic packages installed? WHere can I get them from?

Thanks.
 
The jar they are contained in should be in TOMCAT_HOME/common/lib (depending on you tomcat version) in a file named servlet.jar.

Go to TOMCAT_HOME and do a "find . -type f |grep servlet |grep jar"

Then you need to add the file to your CLASSPATH variable :

export CLASSPATH=$CLASSPATH:$TOMCAT_HOME/common/lib/servlet.jar

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top