wood burning stoves*
The moose likes Servlets and the fly likes package javax.servlet does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "package javax.servlet does not exist" Watch "package javax.servlet does not exist" New topic

package javax.servlet does not exist

Jojit Estillore

Joined: Aug 12, 2003
Posts: 3
set classpath=c:\jdk1.3.1_06\classes111.zip.;
set Java_Home=c:\jdk1.3.1_06\
set Tomcat_Home=c:\Jakarta-tomcat-3.2.3
cd jakarta-tomcat-3.2.3
cd bin
When i compile my code it give me this error "package javax.servlet does not exist"
is there something wrong or any modifications to be made in autoexec.bat?
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 614
Try this,
set classpath=c:\jdk1.3.1_06\classes111.zip;.;c:\Jakarta-tomcat-3.2.3\lib\servlet.jar;
[ October 19, 2003: Message edited by: Praful Thakare ]

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Kapil Varshney

Joined: Oct 19, 2003
Posts: 1
U need to include servlet.jar
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Yes, you can include servlet.jar on your classpath like Praful Thakare
says. Adding 'j2ee.jar' to the classpath would also work.
I agree. Here's the link: http://aspose.com/file-tools
subject: package javax.servlet does not exist
Similar Threads
package javax.servlet does not exist
package javax.servlet does not exist
about HttpRequest
JSP servlet compilation problem
i cant run my program