hi fernando -
can you add the lib/servlet.jar file that was included
with the jswdk distribution to your CLASSPATH and try
the compilation again? you need to make sure you add
the complete path including the trailing servlet.jar
file name to the CLASSPATH.
alternatively you could try the javac -classpath (or -cp)
option or, if your running on jdk1.2.x, you could add
the jar to the jre/lib/ext directory.
hope this helps,
- james
Fernando wrote:
>
> Thanks for your answer.
>
> I've just downloaded the jswdk-1.0 and I don't know how to compile a servlet.
> I'm coding
>
> import java.io.*;
> import java.servlet.*;
> import javax.servlet.*;
>
> ....
>
> with the error:
>
> Undefined package 'java.servlet'(J0051)
> Undefined package 'javax.servlet'(J0051)
>
> Do I have to point a classpath to some directory?
> Do I have to include some jar files?
>
> Thanks in advance.
>
> Fernando Lagos
> [EMAIL PROTECTED]
> http://members.xoom.com/lakes
>
> ___________________________________________________________________________
> 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