aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 1506
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.servlet. Not Found
 
Similar Threads
problem in import
servlet compilation error.
Compilation Error - package javax.servlet does not exist
import javax.servlet
error in the source file