hai Sudha!

Copy the servlet.jar file from

      C:\jswdk-1.0.1\lib  to C:\jdk1.2.2\jre\lib\ext

and compile your servlet it will work

all the best

Jai


>From: Shyam L <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: My first program
>Date: Wed, 1 Mar 2000 16:12:14 +0530
>
>Hi,
>
>I suggest you check your classpath to see whether the .jar files you have
>included in the CLASSPATH have javax.servlet.GenericServlet. That should
>solve your problem I guess.
>
>Regards,
>Shyam L
>   ----- Original Message -----
>   From: Jos� Garrido Carrillo
>   To: [EMAIL PROTECTED]
>   Sent: Tuesday, February 29, 2000 1:50 PM
>   Subject: Re: My first program
>
>
>   Try to use the attachmen files in Windows
>   "K.Sudhakara Reddy" wrote:
>
>      Hi room,
>     I have just started servlets. This code is giving some problem. I
>think the problem is in PATH or CLASSPATH. But I have set it correctly.
>     set path = c:\jsdk2.0\bin; %path%
>     set classpath = c:\jsdk2.0\lib\jsdk.jar; %classpath%
>
>     My code is :
>
>
>
>----------------------------------------------------------------------------
>
>     import javax.servlet.*;
>     public class firstser extends GenericServlet
>     {
>        public void service(servletRequest req, servletResponse res)
>        {
>           try
>           {
>              ServletOutputStream sos = res.getOutputStream();
>              sos.println("<html><body bgcolor =red text =white>");
>              sos.println("<h1>Sudha</h1></body></html>");
>           }
>           catch(Exception e)
>           {}
>        }
>     }
>
>
>
>----------------------------------------------------------------------------
>
>     I am getting these errors when compile :
>
>----------------------------------------------------------------------------
>
>     1.    Package javax.servlet not found.
>     2.    Superclass GenericServlet of the class firstser not found
>
>
>
>----------------------------------------------------------------------------
>
>     Please help me how to come out of this problem.
>
>     sudha..,
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to