I have several Java files in a directory which is declared as a package at the start of the files
package filemanager;
This program works perfectly in an IDE, however I'm having problems with compiling in command line.
I have set the classpath as I understand to be right for my computer to:
C:\Program Files\Java\jdk1.6.0_02\bin
I can compile a class that references no other classes in this package/directory.
However files which reference other classes bring up such errors:
javac AllFiles.java
AllFiles.java:174: cannot find symbol
symbol : variable Bob
location : class filesmanager.AllFiles
Bob.getItem(itemRef);
Where Bob is an example of another class. Even though I can say, compile Bob on it's own as it doesnt have any such reference.
I've tried:
javac -cp "C:\Program Files\Java\jdk1.6.0_02\bin" AllFiles.java
This also failed.
Any ideas?
Edited by: ajr87 on Feb 8, 2008 10:26 AM