From a folder that represents the base of the package hierarchy, if your entry point class is called Main, in a package called app,
javac -classpath . app/Main.java
must generate the correct class definitions. The compiler will parse the dependencies and compile any other classes. Class files will be displayed in the same directory as the source files.
If, as you say, you have a "more than one record" class, you will need to at least identify all the top-level classes from the dependency hierarchy, which can be specified as additional parameters for javac, indicating the packages as they occur. Thus, assuming you also need to start with other.Entry
javac -classpath . app/Main.java other/Entry.java
Note that you still have to figure out which of your classes are the tops of independent dependency hierarchies, whether you create an ant script or do it this way.
source share