fceh wrote:
>
> Hi there, I am new to servlet and to Java. I imported javax.servlet.* and
> import javax.servlet.http.* but javac complained that it could not find it.
>
> "Package javax.servlet not found in import. import javax.servlet.*;
>
> ^
> "Package javax.servlet.http not found in import. import
> javax.servlet.http.*;
>
> ^
> The java.io.* seems to be ok as expected.
>
> I have downloaded the JSDK2.1 and set the env path to it.
It sounds like you have not set the CLASSPATH. If by "set the env path" you mean
the environment variable PATH, then that is likely your problem. PATH is the
location(s) that are searched for programs like javac.exe and java.exe;
CLASSPATH is the location(s) that are searched for class files to be imported or
executed.
Kevin Mukhar
___________________________________________________________________________
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