Automatic creation of Java archives
PrefaceCommand line versionEclipse plugin
Bernd Eggink, monoped@users.sourceforge.net Project page: SourceForge.net
Usage
The package contains two versions with equal functionality. One, autojar.jar, has been created with Autojar itself and contains all necessary classes from the BCEL and log4j library. This version must be used if BCEL or log4j is not installed. The call has the form:
java -jar autojar.jar [option...] [file...]
The other one, autojar-core.jar, contains only classes from Autojar itself. It is much smaller, but needs BCEL (5.1 or later) and log4j. Call it like this:
java -cp autojar-core.jar:bcel.jar:log4j.jar org.sourceforge.autojar.Autojar [option...]\
    [file...]

Program parameters (options and files) may be given indirectly by writing them into a text file (one per line) and supplying this file in the form @file. Example:

java -jar autojar.jar -o old.jar @params -c in.jar @class-list
Here each line of the files params and class-list is considered as a parameter and inserted into the parameter list.

At the end of the run, if option -q is not present, Autojar prints a list of classes and files that couldn't be found, and a list of unused search path components.

Note that this documentation mostly uses the Unix format for file and search paths. Under other systems they must be replaced by the system specific form.

up
Created 2011-05-10 by mopcoge