• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to complile java classes which exist in different Packages

 
surendra ganji
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have one root package name(com) it has four sub packages. In which each sub packages has multiple sub packages. My problem is how to compile leak package java classes. And also these packages are interelaed. Please provide me solution.

Thanks,
Surendra

 
Istvan Kovacs
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With javac, you either specify the .java files or a list holding their names - see javac documentation.
For any non-trivial tree, you'll be better off with a build tool such as ant, or an IDE.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49472
64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic