GenJar is a specialized Ant task that builds jar files based on class dependencies rather than simply the contents of a directory.

GenJar was originally created by John W. Kohler (jake at

Work is underway on GenJar2. GenJar2 will be a functional replacement of GenJar, but build file syntax will change. Some of the features of GenJar2 include:

  • Syntax consistent with Ant's jar task
  • Replacement of GenJar's with Ant's
  • Replacement of GenJar's with with Ant's
  • BCEL for class dependency checking

The original GenJar branch will be maintained for as long as there is demand.

Licence: Apache License