Gill,
This error normally comes when Compiler is unable to locate the packages
which you are importing this is basically because your classpath is not
properly set or your compiler is not catching that CLASSPATH. You can
provide the classpath while compiling the JAVA file. For eg... suppose your
JSDK is installed in c:\JSDK2.0 directory then you can compile your file by
using this command :

java -classpath c:\jsdk2.0\lib\jsdk.jar <your Java File>

Hope this will work for u.

Jaspreet

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Gill
Sent: Thursday, August 03, 2000 12:25 PM
To: [EMAIL PROTECTED]
Subject: FW:Help: Servlet
Importance: High
Sensitivity: Confidential


Dear Fellows,

I have sent a below mentioned help request but didn't get any response uptil
now. Will you please help me in this problem....


Hello Guys,

I am facing a problem when making a servlet class file. When I compile the
servlet "java" file. I got this below mentioned message. Will you please
help me in this concern....

Thanks.

Gill

--------------------------- Compiler Output ---------------------------
HTTPGetServlet.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
HTTPGetServlet.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
HTTPGetServlet.java:7: cannot resolve symbol
symbol  : class HttpServlet
location: class HTTPGetServlet
public class HTTPGetServlet extends HttpServlet {
                                    ^
HTTPGetServlet.java:8: cannot resolve symbol
symbol  : class HttpServletRequest
location: class HTTPGetServlet
   public void doGet( HttpServletRequest request,
                      ^
HTTPGetServlet.java:9: cannot resolve symbol
symbol  : class HttpServletResponse
location: class HTTPGetServlet
                      HttpServletResponse response )
                      ^
HTTPGetServlet.java:10: cannot resolve symbol
symbol  : class ServletException
location: class HTTPGetServlet
      throws ServletException, IOException
             ^
6 errors

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to