Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem setting up classpath for servlets

 
DSV
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 21504
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic