A while ago I posted some shell scripts to decompile java classes.
I decided to re-implement it in ruby so I can use it between my work (Windows) and home (OS X) machines.
This version does not require you to extract the class files first. You simply pass the jar file to the script and it’ll decompress and decompile it into a directory with the same name as the jar file without .jar.
Quick script to decompile all the class files.
find . -name "*.class" -not -name "*\$*" | while read class
do
dir=`dirname $class`
file=`basename $class .class`
pushd $dir >/dev/null
jad -p ${file}.class > ${file}.java
popd >/dev/null
done