File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "javax.servlet. Not Found" Watch "javax.servlet. Not Found" New topic
Author

javax.servlet. Not Found

Sachin Tendulkar
Greenhorn

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
Bartender

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


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javax.servlet. Not Found