File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes problem setting up classpath for servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem setting up classpath for servlets" Watch "problem setting up classpath for servlets" New topic
Author

problem setting up classpath for servlets

DSV
Greenhorn

Joined: Mar 09, 2000
Posts: 5
Hi
I'm having problem compiling one of my servlet.
Here is the error i get
C:\jdk1.2.2\java\HelloWorldServlet.java:6: Superclass HttpServlet of class HelloWorldServlet not found.
public class HelloWorldServlet extends HttpServlet
The classpath set in Autoexec.bat is
SET CLASSPATH= .;C:\JSDK2.0\lib\jsdk.jar
The classpath set in environment is
CLASSPATH= .;C:\JSDK2.0\lib\jsdk.jar
I'm running on Windows NT.

The directory where this servlet is stored is
c:\jdk1.2.2\java

Can anyone help me on what is wrong. My work is stuck up bcos
of this
[This message has been edited by DSV (edited March 11, 2000).]
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20498
    ∞

Usually, the servlet server will only look for servlets in a particular directory. For some servlet servers you need to specify the servlets that can be served.
Which servlet server are you using?


permaculture Wood Burning Stoves 2.0 - 4-DVD set
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem setting up classpath for servlets
 
Similar Threads
Problem with Servlet
Servlet compile problems
How to configure JSDK2.0
servletcompilation
How do I set the classpath...