File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet compiling error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet compiling error" Watch "Servlet compiling error" New topic

Servlet compiling error

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031

i have set the PATH variable as D:\Alternate_C_Drive\apache-tomcat-6.0.16\lib\servlet-api.jar
But when i am going to compile servlet it says this?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60053

PATH has nothing to do with compiling. You need to add the jar file to the classpath.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
I agree. Here's the link:
subject: Servlet compiling error
Similar Threads
Tomcat not loading its jars to classpath at run time
simple servlet program error
package javax.servlet.http does not exist
java don't compile my servlet.
servlet compilation