aspose file tools*
The moose likes Beginning Java and the fly likes javac compiling problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javac compiling problem " Watch "javac compiling problem " New topic
Author

javac compiling problem

Larry Frissell
Ranch Hand

Joined: May 16, 2008
Posts: 82
    
    2
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
Found my problem, classses was spelled wrong in the terminal command.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javac compiling problem