Hi Stig,
u have to set add servlet.jar ( generally located in lib directory ) to
the classpath. Then this error won't appear.
Abhay
----- Original Message -----
From: Townsend, Stig <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 07, 2000 5:37 PM
Subject: Compiling servlets with JDK 1.2.2
> The documentation for Servlet dev kit 2.0 says that it is no longer needed
> with Java dev kit 1.2 onwards. However, having installed JDK 1.2.2, I can
> compile a 'hello world' class but not a servlet. It reports errors:
> Package javax.servlet not found in import
> Package javax.servlet.http not found in import.
>
> Is it true that JDK 1.2.2 is sufficient to compile and run servlets, and
if
> so, do you have any idea of what I may be doing wrong?
>
> Stig Townsend
>
> Software Division, Fox IT
> (incorporating Ultracomp Ltd)
> [mailto:[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
>
___________________________________________________________________________
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