This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
wood burning stoves
subject: javax.servlet. Not Found
Similar Threads
import javax.servlet
servlet compilation error.
Compilation Error - package javax.servlet does not exist
problem in import
error in the source file