jartools is a command-line utility for examining java archives (JARs
and WARs). It is a complement to (not a replacement for) the standard
It is designed to use streams in the standard unix style so it can be
composed with other stream-processing tools (e.g.,
jartools is distributed as a rubygem. Install it like so:
$ gem install jartools
Depending on how your ruby is installed, you may need root privileges to do this.
It's been tested on Ruby 1.8.7, JRuby 1.5.6, and Ruby 1.9.2.
To see what tools are included in the version you have installed, you can do this:
$ jartools help
To get details on a particular tool, use, e.g.:
$ jartools help packages
This online help tells you what arguments may be passed to each command.
Lists all the packages present in a JAR.
Prints the JAR's manifest (if any) to standard out.
Does a diff of two JARs or WARs, including file content diffs and recursive diffs of contained JARs.
Non-issue questions can be sent to firstname.lastname@example.org.
jartools is copyright 2010 Rhett Sutphin. It was built at NUBIC.