check class path. see those jar file are properly put in the right place,
usually in tomcat/lib

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Jun wang
Sent: Friday, February 16, 2001 4:14 PM
To: [EMAIL PROTECTED]
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

Reply via email to