Hi,

You need to place jsdk.jar in your classpath i.e. servlets are not a part
of the core 1.2 classes.  To run it, you need to place it the servlets
subdirectory (or equivalent).  The documentation that comes with the
servlet engine you are using should explain where to place it.

Good luck.
Chor Hock Lee
Solution Architect
(eBusiness, Java, Network Computing - the tools of Business Transformation)


Tel: 613 96266561 Mobile: 0411 259313 Fax: 613 96266622



Steck Andreas <[EMAIL PROTECTED]> on 13/03/99 09:54:26 PM

Please respond to "A mailing list for discussion about Sun Microsystem's
      Java              Servlet API Technology."
      <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Chor-Hock Lee/Australia/IBM)
Subject:  how to run a servlet





Hi,

I'm trying to leran programming JAVA-servlets. I have written the source
code,
but I don't know how to compile and to run it.

The JDK1.2 says the following 3 errors

HelloWorld.java:2: Package javax.servlet not found in import.
import javax.servlet.*;
           ^
HelloWorld.java:3: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
           ^
HelloWorld.java:5: Superclass HttpServlet of class HelloWorld not found.

public class HelloWorld extends HttpServlet
                                                  ^

Thanks in advance
        Andi

___________________________________________________________________________
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

___________________________________________________________________________
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
  • ... Steck Andreas
    • ... Lee Chor-Hock
    • ... Rajeev Arora
    • ... Steck Andreas
    • ... Rajeev Arora
    • ... V T R Ravi Kumar
    • ... Madhu Gopal Panyala
    • ... <John Thomas>
    • ... Shiva.Devaguptapu
      • ... anoop
        • ... Медер Бакиров

Reply via email to