if you do not set CLASSPATH  environment variable, when you compile the
source code, may use the following command:
javac -classpath .;..\jsdk2.1\server.jar;..\jsdk2.1\servlet.jar
yoursrc.java

-----Original Message-----
������: Heiko Hotz <[EMAIL PROTECTED]>
�ռ���: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
����: 2000��9��7�� 16:43
����: compile servlets


>Hi everybody.
>
>I succesfully installed JServ and JSDK2.0.
>I set the classpath to JSDK2.0/lib/jsdk.jar.
>
>But when I try to compile a servlet I receive
>this messsage:
>
>-----
>
>EchoRequestServlet.java:3: Package javax.servlet not found in import.
>import javax.servlet.*;
>       ^
>EchoRequestServlet.java:4: Package javax.servlet.http not found in
>import.
>import javax.servlet.http.*;
>       ^
>EchoRequestServlet.java:6: Superclass HttpServlet of class
>EchoRequestServlet not found.
>public class EchoRequestServlet extends HttpServlet
>                                        ^
>3 errors
>
>-----
>
>So, what went wrong?
>
>Thanks
>Heiko
>
>--
>**************************
>*http://www.heiko-hotz.de*
>*------------------------*
>*mailto:[EMAIL PROTECTED]   *
>**************************
>
>--
>Sent through GMX FreeMail - http://www.gmx.net
>
>___________________________________________________________________________
>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

Reply via email to