File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes compiling package problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compiling package problem" Watch "compiling package problem" New topic

compiling package problem

Rob Petterson
Ranch Hand

Joined: Jan 23, 2002
Posts: 149
I don't understand where I'm going wrong here.
I've got 2 classes in the same package, one of which ( accesses the other class
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/
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
Charles Rector

Joined: Feb 18, 2003
Posts: 14
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
I'm afraid not.
Sangeeta Murthy

Joined: Feb 19, 2003
Posts: 3
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*.java ?
I agree. Here's the link:
subject: compiling package problem
It's not a secret anymore!