Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

package javax.servlet does not exist  RSS feed

 
Priyanka Chopda
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
I have set my classpath pointing to servlet.jar. But still I'm not able to compile the servlet.
set CLASSPATH=%CLASSPATH%;F:\Applications\Tomcat4.1\common\lib\servlet.jar
set PATH=F:\Applications\Tomcat4.1\common\lib\servlet.jar
Any ideas what I'm missing.
Thanks
-PC
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if that's really your PATH setting, then you won't even be able to run javac, because it's not on the PATH. Note that .jar files never belong on the PATH, only the CLASSPATH.
I'm moving this to Servlets for followups.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!