Skip to content
Tools for examining Java bytecode in Python
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
extras strip out pylint, tired of fighting with it. Switching to flake8 Mar 30, 2017
javatools Work on flake8ifying the code Nov 2, 2018
tests Added test for inspecting class members of array type Oct 12, 2018
.flake8 just exclude, remove the ignored message that it triggered Apr 5, 2017
.travis.yml Declared support for Python 3 Oct 12, 2018
HACKING rules rules rules Apr 5, 2017
python-javatools.spec delay loading of the cheetah build_py until actual build time Dec 15, 2018

Overview of python-javatools

A python module for unpacking and inspecting Java Class files, JARs, and collections of either.

It can do deep checking of classes to perform comparisons of functionality, and output reports in multiple formats.

If you have suggestions, please use the issue tracker on github. Or heck, just fork it!


In addition, the following tools are used in building and testing the project.

All of these packages are available in most linux distributions (eg. Fedora), and for OSX via MacPorts.


This module uses setuptools, so running the following will build the project:

python build

to install, run:

sudo python install


Tests are written as unittest test cases. If you'd like to run the tests, simply invoke:

python test


If you'd prefer to build an RPM, see the wiki entry for Building as an RPM.

Javatools Scripts

  • classinfo - similar to the javap utility included with most JVMs. Also does provides/requires tracking.

  • classdiff - attempts to find differences between two Java class files

  • jarinfo - prints information about a JAR. Also does provides/requires tracking.

  • jardiff - prints the deltas between the contents of a JAR, and runs classdiff on differing Java class files contained in the JARs

  • jarutil - creates and signs JARs, verifies JAR signatures

  • manifest - creates and queries JAR manifests

  • distinfo - prints information about a mixed multi-jar/class distribution, such as provides/requires lists.

  • distdiff - attempts to find differences between two distributions, deep-checking any JARs or Java class files found in either directory.

Additional References


Christopher O'Brien

If you're interested in my other projects, feel free to visit my blog.


This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, see

You can’t perform that action at this time.