Thursday, 14 April 2011

Install JODE Java decompiler and Jode Eclipse Plugin

1)  sudo aptitude install libgetopt-java
2) Download JODE JAR
3) Place the JODE JAR in /usr/local/share/java/:

  • sudo mkdir /usr/local/share/java
  • sudo chmod 755 /usr/local/share/java
  • sudo cp Downloads/jode-1.1.2-pre1.jar /usr/local/share/java/
  • sudo chmod 644 /usr/local/share/java/jode-1.1.2-pre1.jar
4) Create the jode executable:
  • sudo gedit /usr/local/bin/jode
  • insert following code
#!/bin/bash
prefix=/usr/local

case $1 in
[Ss]wi*) CLAZZ=jode.swingui.Main; shift ;;
[Dd]ec*) CLAZZ=jode.decompiler.Main; shift ;;
[Oo]bf*) CLAZZ=jode.obfuscator.Main; shift ;;
*) CLAZZ=jode.decompiler.Main ;;
esac

#CP=`echo $CLASSPATH | sed s/:/,/`
CLASSPATH=${prefix}/share/java/jode-1.1.2-pre1.jar:/usr/share/java/gnu-getopt.jar:.
echo Executing: /usr/bin/java -classpath $CLASSPATH $CLAZZ $*
/usr/bin/java -classpath $CLASSPATH $CLAZZ $*


5) sudo chmod 755 /usr/local/bin/jode
6) download eclipse plugin
7) Place the plugin into the Eclipse plugin directory:
sudo cp Downloads/net.sourceforge.jode_1.0.6.jar /usr/lib/eclipse/plugins/
8) command line
jode -h or jode --help

Bytecode Outline plugin for Eclipse

click here for reference

1) Go to eclipse - help contents - Workbench User Guide - Tasks - Updating and installing software - Using the classic update manager - Installing new features with the update manager
2) Click "New remote site"
Name - ObjectWeb Eclipse Update Site
Url - http://download.forge.objectweb.org/eclipse-update/

3) follow next instructions