This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javac command  RSS feed

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!