Forums Register Login

problem setting up classpath for servlets

+Pie Number of slices to send: Send
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).]
+Pie Number of slices to send: Send
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?
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 859 times.
Similar Threads
How to configure JSDK2.0
Problem with Servlet
servletcompilation
How do I set the classpath...
Servlet compile problems
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:50:09.