File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes javax.servlet. Not Found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "javax.servlet. Not Found" Watch "javax.servlet. Not Found" New topic

javax.servlet. Not Found

Sachin Tendulkar

Joined: Jul 13, 2002
Posts: 1
I have jsdk, servlet Dev kit and tomcat. My jsp are compiling well. but i get error while compiling Servlets.
Error is :
package javax.servlet.* does not exist
F1 plz
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Try to put servlet jar files in ur classpath.u can find servlet.jar and jasper.jar in tomcat-home/lib directory add them to ur classpath.Also add tools.jar from jdk to ur classpath.
This all helps for compiling ur servlets.

Spritle Software Blogs
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
If you are still having problems, try putting servlet.jar in jdkdirectory\jre\lib\ext

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: javax.servlet. Not Found