Saturday, January 26, 2013

Installing JD-GUI on Linux

JD-GUI is a Java decompiler. This utility allows you to look at Java source codes. You can obtain the software here.
File: jd-gui-0.3.5.linux.i686.tar.gz

Install the following packages needed for JD-GUI.
sudo yum install libXxf86vm libcanberra-gtk2.i686 PackageKit-gtk-module.i686 gtk2-engines.i686 libXxf86vm.i686

Unpack "jd-gui-0.3.5.linux.i686.tar.gz" and place "jd-gui" and "open-in-jd-gui.sh" into specific directories.
tar -xvf jd-gui-0.3.5.linux.i686.tar.gz
sudo mv jd-gui /usr/bin
mv contrib/Nautilus\ File\ Manager\ Integration/open-in-jd-gui.sh ~/.gnome2/nautilus-scripts/

To make jd-gui the default application when opening a ".jar" or ".class" file, follow the given steps below.
  1. Right click on any Java ".class" or ".jar" .
  2. Click properties.
  3. On the "Open With" tab, click add.
  4. On the "Add Application" window,  select "Use a custom command" and type "jd-gui". Click Add.
  5. Select  "jd-gui" as the default application.





2 comments:

  1. ubuntu doesnt use yum

    ReplyDelete
  2. Just install like in the documentation, https://github.com/java-decompiler/jd-gui

    ReplyDelete