hi guys, I am trying to execute the
servlet program for listener example give in Head First Book. I have placed all the
java files (Dog, ListenerTester and MyServletContextListener) in the same path. Dog class is getting compiled successfully but the other two classes are showing the "Cannot find symbol(Dog)" error. Dog class is public but still it's not able to recognize it while compiling. I am compiling the file in CMD using the following command :
javac -classpath C:\apps\apache-tomcat-5.5.34\common\lib\servlet-api.jar -d classes "C:\Documents and Settings\372162\My Documents\J2EE_Practice\MyProjects\listener-Ex\src\com\example\web\ListenerTester.java"