Firstly, this is less to do with servlets than general Java programming...
 
I suspect that the libraries that you want to be using arent actually available in your path (or possibly on your computer at all if you just downloaded an example.java file from somewhere). You will most likely need to download the javax.servlet library (.jar file) or make sure that it is in your classpath...
-----Original Message-----
From: Joey A [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 6:00 PM
To: [EMAIL PROTECTED]
Subject: New...

Hi Guys,
I've just started with developing Servlets and have no idea what is what :-(
I just wrote a program and got the following errors:
****************************************************************************************
---------- Java Compiler ----------
CSRandomQuote.java:28: Package javax.servlet not found in import.
import javax.servlet.*;
       ^
CSRandomQuote.java:29: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
       ^
CSRandomQuote.java:33: Class com.coolservlets.randomquote.QuoteCollection not found in import.
import com.coolservlets.randomquote.QuoteCollection;
       ^
CSRandomQuote.java:59: Superclass HttpServlet of class CSRandomQuote not found.
public class CSRandomQuote extends HttpServlet {
                                   ^
**************************************************************************************
4 errors
Normal Termination
Output completed (2 sec consumed).
 
Can somebody tell me where's the error and how can I over come them?
 
Thanx in advance from your new friend :-)
 
Joey
 
p.s.: what's the exact answer to this question?
Which class does a servlet usually inherit from?

Reply via email to