Hi there, I've upgraded my existing version of MySQL and can run Test.java, and TestServlet.java extends HttpServlet, but when I try TestServlet.java extends LogServlet I get the following errors: "C:\javaranch>javac TestServlet.java .\LogServlet.java:7: package LocalSystem does not exist import LocalSystem.* ; ^ TestServlet.java:5: cannot access LogServlet bad class file: .\LogServlet.java file does not contain class LogServlet Please remove or make sure it appears in the correct subdirectory of the classpath. public class TestServlet extends LogServlet ^ 2 errors" I've tried adding c:\javaranch\JavaRanchCommon.zip; to the classpath, but it makes no difference; JavaRanchCommon.zip is in c:\javaranch and it does have LocalSystem.class in the root. Does anyone have any suggestions? LogServlet certainly used to work OK All the best, Kate!!
Thanks for that Joyce. After reading the thread, and relooking at the error message, I thought I'd do a check and see what .java files I had in my "working" directory - and there was LogServlet.java (I'd extracted it while doing Servlets 5 and hadn't removed it) I deleted it and now everything compiles without problem - and runs OK as well. Phew! All the best, Kate!!
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad: