• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.servlet. Not Found

 
Sachin Tendulkar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are still having problems, try putting servlet.jar in jdkdirectory\jre\lib\ext
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic