jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets 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
It is sorta covered in the JavaRanch Style Guide.
subject: javax.servlet. Not Found
Similar Threads
import javax.servlet
servlet compilation error.
problem in import
error in the source file
Compilation Error - package javax.servlet does not exist