Dave, Can you type 'javap javax.servlet.http.HttpServlet' on a command line? If it shows Class 'javax.servlet.http.HttpServlet' not found then a) the servlet.jar is not in your classpath or b) the servlet.jar is corrupted. or c) your classpath has an error in it
In any of these cases, you will get the error that you describe when you try and compile. Are you compiling from the command line or from an IDE? Kenny's email is correct. -Richard > -----Original Message----- > From: David Mitchell [SMTP:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 3:39 PM > To: [EMAIL PROTECTED] > Subject: Re: Help With Servlet.jar > > Thanks for you help Kenny. Yes, I have servlet.jar in my classpath in > autoexec.bat. This is the way that I've always done it with no probs, > till now... > > -----Original Message----- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED] On Behalf Of Lai, Kenny > Sent: Friday, June 13, 2003 6:38 PM > To: [EMAIL PROTECTED] > Subject: Re: Help With Servlet.jar > > > thats one way of doing it.. another is to just refix your classpath in > your > environment so that the compiler can see the servlet.jar file > > -----Original Message----- > From: David Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 6:32 PM > To: [EMAIL PROTECTED] > Subject: Re: Help With Servlet.jar > > > Really? I never had to do that before when everything was working... > > -----Original Message----- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED] On Behalf Of Lai, Kenny > Sent: Friday, June 13, 2003 6:32 PM > To: [EMAIL PROTECTED] > Subject: Re: Help With Servlet.jar > > > you need to add the servlet.jar as an argument when you compile your > servlets and/or classes.. > > javac -classpath .;c:\tc\common\lib\servlet.jar someclassfile.java > > -----Original Message----- > From: David Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 6:25 PM > To: [EMAIL PROTECTED] > Subject: Help With Servlet.jar > > > Hey Everyone, > > I recently blew away my development environment and had to reinstall > Tomcat. Now when I try to compile classes that we're previously working > I get "cannot resolve symbol" errors anywhere I reference > javax.serlvet.* or javax.servlet.jsp.*; > > I have servlet.jar in the lib directory in my jdk directly on the server > which is in my classpath, as well as the /common/lib directory in > Tomcat. > What's going on? I've never had this trouble with Tomcat before. Is > there a better JSP/servlet container that I should be using? Tomcat > seems ridiculously, annoyingly complex. > > Thanks, > > Dave > > ======================================================================== > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com > > ======================================================================== > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com > > ======================================================================== > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com > > ======================================================================== > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com > > ========================================================================== > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com