You should have the statement as
import javax.servlet.http.* ;
Pradeep
neeraj koul wrote:
> I have set following
>
> JAVA_HOME=c:\java\jdk1.2
> path includes java\jdk1.2\bin
>
> Now I run the following command
> javac -classpath c:\jswdk\jswdk-1.0.1\lib\servlet.jar HEY.java
> but it is still unable to find files
> and gives following error
> HEY.java:4: Package java.servlet not found in import.
> import java.servlet.*;
> ^
> HEY.java:7: Superclass HttpServlet of class HEY not found.
> public class HEY extends HttpServlet {
> ^
> 2 errors
>
> I DO NOT KNOW WHY IT IS NOT ABLE TO FIND THESE CLASSES
>
> can somebody suggest since documentation does not say anything else than
> what i have done
>
> THANKS
>
> neeraj
>
> ___________________________________________________________________________
> 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