Hi, Before I compiled with MultiEdit and run under Tomcat I am now trying to import my current webapp into Eclipse which I am intending to use. Everything has gone well apart from the fact of resolving the servlet stuff. My problem is that when I try to build my project I get the compile error "HttpServlet cannot be resolved or is not a valid superclass" I have tried adding the servlet.jar from Tomcat's common\lib as an external JAR in the Java Build Path, even tried putting it in the ClassPath Variables under 'Windows>Preferences" Also having add the import statement (which I didn't need to before when compiling under MultiEdit. I obviously only want to build against the .class in the servlet.jar and not include any source I know this is a pretty basic question - but its now fustrating me and stopping me from exploring Eclipse Can anyone help ? Had their own problem with this ?
Hi, thanks for the reply. Upon further investigation I have now realised that Eclispse does not save the source as default when you hit rebuild all ! - D'oh So I had actually done the right thing - was just stupidly assuming that it saved the amended source :-( Scott
Originally posted by Scott Burnett: Hi, thanks for the reply. Upon further investigation I have now realised that Eclispse does not save the source as default when you hit rebuild all ! - D'oh So I had actually done the right thing - was just stupidly assuming that it saved the amended source :-(
Actually, Eclipse works the other way around per default: it compiles your source automatically when you save the file!
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus