Saturday, 20 June 2015

How to install jd-gui ?

How to install graphical java decompiler (jd-gui) ?

Really this is very basic and very useful when you want to decompile the existing old legacy code . I faced this kind of situation many times and did the same thing. I am sharing this because it may help you .

I am using Linux (Ubuntu Maya). But, you can try with any other Linux distributions even windows OS also. You need to download the 

Download from here.

You  need to download the.tar.gz file  ( jd-gui-0.3.5.linux.i686.tar.gz) for Linux. Then extract the file and go to jd-gui-0.3.5.linux.i686 folder. You can extact via below command else you can try by right+click on the file and extract.

tar -xvf jd-gui-0.3.5.linux.i686.tar.gz

Check there are such below files in that directory.
dev@jdg-developer-desktop ~/Downloads/jd-gui-0.3.5.linux.i686 $ ls -ltr
total 1100
drwx------ 3 dev dev    4096 Aug 29  2012 contrib
-rwxrwxr-x 1 dev dev 1111160 Oct 16  2012 jd-gui
-rw-r--r-- 1 dev dev    2462 Oct 16  2012 readme.txt
-rw-r--r-- 1 dev dev     317 Jun  4 14:15 jd-gui.cfg
dev@jdg-developer-desktop ~/Downloads/jd-gui-0.3.5.linux.i686 $ 

Execute the jd-gui and open the application :
dev@jdg-developer-desktop ~/Downloads/jd-gui-0.3.5.linux.i686 $ ./jd-gui  

You can import multiple jar files for decompile and see the code.

Note - You may get some kind of library missing error , but it depends on you operating system.Whether you are using Fedora,Mint ,Cent Os or Ubuntu. So, you need to install the respective lib and need to update the OS terminal if required.You need to install the below extra libraries if its asking.

 sudo apt-get install libgtk2.0-0:i386 libxxf86vm1:i386 libsm6:i386 lib32stdc++6

I have fixed in my desktop, because of this missing lib I was getting some kind of library missing error. But you can fix this and TRY........Good Luck.

Follow for more details on Google+ and @Facebook!!!

Find More :-