I don't understand where I'm going wrong here. I've got 2 classes in the same package, one of which (DBAccess.java) accesses the other class Coins.java In the dos prompt I change the working directory to where the java files are located and then type this command: javac -classpath .com/project/databases/DBAccess.java When I hit enter, it executes the command and gives the impression that it has compiled both java files. When I do dir, it hasn't created any class files?? Any ideas???
Joined: Feb 18, 2003
I believe the .class files will have been created in the com/project/databases/ folder.
Driven. You know. By people who drive.
Joined: Jan 23, 2002
I'm afraid not.
Joined: Feb 19, 2003
Why do you have a dot before com? If you are compling the java files from the folder where they are then they shouldn't they be compiled like this: javac com.abc.folder.*.java ?