The class path is not set properly. That should be set to include the
servlet packages.
----- Original Message -----
From: "Jun wang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2001 5:14 PM
Subject: Compile error of Servlet
> Hi,
> I am a new learner.I try to compile java code,which is
> in the Tomcat examples directory:
> D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\
> TableBean.java
>
> After the compiling, the error message shows
> following:
>
> D:\foo\tomcat\webapps\examples\WEBINF\classes\cal\
> TableBean.java:62: Package javax.servlet.http not
> found in import.
> import javax.servlet.http.*;
> ^
> D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\
> TableBean.java:63: Package javax.servlet not found in
> import.
> import javax.servlet.*;
> ^
>
> Does something wrong with Tomcat setup? How to solve
> it?
> Thanks!!
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets