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 compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet compilation error " Watch "Servlet compilation error " New topic

Servlet compilation error

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
I am using JDK1.2.2 and Tomcat.
I have servlet file in c:\jakarta-tomcat\webapps\example\WEB-INF\classes. Do I need to set any other variables/values for compiling servlets ?
I have following variables set :
CLASSPATH = c:\jdk1.2.2;
PATH = c:\jdk1.2.2;c:\jdk1.2.2\bin;c:\jakarta-tomcat\src\;
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
You need to include the servlet.jar file that has all of the servlet related classes somewhere that your compiler can see it.
Servlet classes are standard extensions so you might put it with the other standard extension JAR files.
I agree. Here's the link:
subject: Servlet compilation error
It's not a secret anymore!