You need to get the Java Servlet Development Kit (JSDK) or JWSDK and than
you will get all the javax.* classes.
Good luck...
- Radek
eric leung <[EMAIL PROTECTED]> on 01/06/2000 09:03:54 PM
Please respond to "A mailing list for discussion about Sun Microsystem's
Java Servlet API Technology."
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Radek Jadczak/Plextel Telecommunications)
Subject: How to compile a servlet?
Hi,
I am a beginner to Java using the WindowsNT platform.
I just got a sample of servlet source - one of the
"HelloWorld.java" which contains statements
[import javax.servlet.*; import javax.servlet.http.*; ...].
I have full download of JDK1.2.2 and have set
PATH=JDK1.2.2\bin. I can compile successfully on
non-servlet.java.
However, I got errors when compiling a servlet.
C:>javac HelloWorld.java
errors: package javax.servlet not found in import
import javax.servlet.*;
^
package javax.servlet.http not found in import
import javax.servlet.http.*;
^
Superclass HttpServlet not found
public class HelloWorld extends HttpServlet
^
Do I need more setting such as PATH? Do I need more
download such as JRE1.2.2 too? or else??
Thanks,
Eric.
______________________________________________________
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
___________________________________________________________________________
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