Kids these days have it easy:
# pip install java2python
Install ANTLR Runtime
We need the ANTLR Python runtime before we can install java2python:
# wget http://www.antlr3.org/download/antlr-3.1.3.tar.gz # tar xfz antlr-3.1.3.tar.gz # cd antlr-3.1.3/runtime/Python/ # python setup.py install
Now the goodness:
# wget https://github.com/downloads/natural/java2python/java2python-0.5.1.tar.gz # tar xfz java2python-0.5.1.tar.gz # cd java2python # python setup.py install
The latest source can be installed directly from github:
# pip install --upgrade https://github.com/natural/java2python/zipball/master
You'll want to clone or fork the repo to work on the project, however.
The development dependencies (what you need if you're coding java2python) are ANTLR, also version 3.1.3, GNU make, and a JVM.