File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.servlet not found

 
Karen Zeller
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Going through the tutorials and this error seems to have happened to people in the past. I'm trying to compile my first servlet and I get the javax.servlet does not exist error.

I've tried updating my PATH to point to tomcat/lib/jsp-api.jar as well as tomcat/lib/servlet-api.jar.

Short of installing Eclipse is that resource out there somewhere on Tomcat 6?


Thanks

Karen

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PATH has nothing whatsoever to do with it. You need to add the jar to the compilation classpath.
 
Karen Zeller
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just created CLASSPATH and added the two paths to it. Now it compiles.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic