aspose file tools*
The moose likes Java in General and the fly likes How to complile java classes which exist in different Packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to complile java classes which exist in different Packages" Watch "How to complile java classes which exist in different Packages" New topic
Author

How to complile java classes which exist in different Packages

surendra ganji
Greenhorn

Joined: May 13, 2010
Posts: 1
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

Joined: May 06, 2010
Posts: 100
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

Joined: Oct 13, 2005
Posts: 39409
    
  28
And welcome to the Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to complile java classes which exist in different Packages