I am working on the HeadFirst Servlets, but my problem does not appear to be a servlet problem. I have been compiling files without any problems up to this point. I am trying to compile MyServletContextListener which is giving me errors because it can not find the Dog class. I have complied the Dog class without errors.
Terminal command with errors
DAD$ javac -classpath /Users/Dad/tomcat/lib/servlet-api.jar:clases:. -d classes src/com/example/MyServletContextListener.java
src/com/example/MyServletContextListener.java:9: cannot find symbol
symbol : class Dog
location: class com.example.MyServletContextListener
Dog d = new Dog(dogBreed);
^
src/com/example/MyServletContextListener.java:9: cannot find symbol
symbol : class Dog
location: class com.example.MyServletContextListener
Dog d = new Dog(dogBreed);
^
2 errors
Dog Class which compiles fine
MyServletContextListener which is not compiling
Larry Frissell
Ranch Hand
Joined: May 16, 2008
Posts: 82
2
posted
0
Found my problem, classses was spelled wrong in the terminal command.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.