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???
Rob Petterson
SCJP
Charles Rector
Greenhorn
Joined: Feb 18, 2003
Posts: 14
posted
0
I believe the .class files will have been created in the com/project/databases/ folder.
Driven. You know. By people who drive.
Rob Petterson
Ranch Hand
Joined: Jan 23, 2002
Posts: 149
posted
0
I'm afraid not.
Sangeeta Murthy
Greenhorn
Joined: Feb 19, 2003
Posts: 3
posted
0
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 ?
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.