Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem setting up classpath for servlets" Watch "problem setting up classpath for servlets" New topic

problem setting up classpath for servlets


Joined: Mar 09, 2000
Posts: 5
I'm having problem compiling one of my servlet.
Here is the error i get
C:\jdk1.2.2\java\ 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

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

Joined: Dec 14, 1998
Posts: 20971

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
I agree. Here's the link:
subject: problem setting up classpath for servlets
It's not a secret anymore!