If you've set the classpath It's strange why you can't compile. But if
you are compiling in Win95, you must restart your PC, or if you are
in Unix, you must relogin and then it would work fine. But if you
don't want to do it, so you can do the following:

For Win95 (suppose that JSDK2.0 is installed in c:\jsdk2.0
javac -classpath %CLASSPATH%;.;C:\jsdk2.0\lib\jsdk.jar
HelloServlet.java

For Linux (Suppose jsdk2.0 is in /usr/lib/jsdk2.0)
avac -classpath ${CLASSPATH}:.:/usr/lib/jsdk2.0/lib/jsdk.jar
HelloServlet.java


On 7 Sep 2000, at 10:27, Heiko Hotz wrote:

> 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



Fabio Alarcon Ortiz

Seguro Social de Salud, Lima - Peru
Gerencia Central de Desarrollo e Informatica
Gerencia de Sistemas
Phones : (51 1) 265 6000, 265 7000 Extensions 2356, 2357
Mobile : (51 1) 855 1393
ICQ    : 11002875
email  : [EMAIL PROTECTED], [EMAIL PROTECTED]

___________________________________________________________________________
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