|
Preface
Description
Autojar creates jar archives of minimal size from different sources
(classes, directories, libraries). Starting from one or more classes,
it scans the bytecode recursively for other classes, extracts them
from their archives if necessary, and adds them to the output file.
The resulting archive contains only classes that are really needed.
Thus the size and loading time of applets can be kept low, and applications
can be made self-contained.
In a similar way, Autojar can search directories and archives for other resources (like image files), extract them and copy them to the output. Besides that, Autojar can be used to merge several libraries into one, or to replace single classes in an archive without manually unpacking and re-packing it. A potential problem is reflection. Autojar doesn't know which
classes the program will load during runtime. It can, however, search
the bytecode for invocations of Autojar works with JRE 1.4.2 or later. It uses classes from the BCEL library (http://jakarta.apache.org/bcel/) and from log4j (http://logging.apache.org/log4j/). As of version 2.0, Autojar comes in two variants: A command line version, which is controlled by options, and an Eclipse plugin. History
Version 2.0: Minor bug fixes in Autojar. The Eclipse plugin
(V. 1.0) has been almost completely rewritten. The plugin environment is no longer
constrained to a single Eclipse project.
Version 2.0pre1: Heavy refactoring in conjunction with the
plugin development. Class Version 1.3.1: Minor bug fixes.
Version 1.3: Project moved to SourceForge.
Version 1.2.2:
Some bugs fixed.
Version 1.1: Along with option -p, a search path for non-class files may be supplied (e.g., .gif files). Alternatively option -b ("both") tells autojar to search the class path for non-class files as well. Bugs
Please report bugs via the
SourceForge bug system.
|
German version