Two Laptop Bag*
The moose likes Beginning Java and the fly likes javac command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javac command" Watch "javac command" New topic
Author

javac command

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
Why is it that when I compile java files from DOS using the javac command, it ignores my package declarations? It just creates the class files in the same directory.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Your package declarations were used to fill the internal class table "package" field. The compiler does not want to have to worry about whether or not you have (yet) implemented the sub-directories in the operating system.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Consider Paul's rocket mass heater.
 
subject: javac command