boiling memoir

journey of one man

How to Decompile Everything

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