wood burning stoves
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javac command" Watch "javac command" New topic

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"

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
I agree. Here's the link: http://aspose.com/file-tools
subject: javac command
It's not a secret anymore!