jad java decompiler is a tool that use for decompiling a .class file into a java source file. i had tried this tool one year ago on windows environment (decompile a java class file) and i feel is very useful whenever i have the class files
jad java decompiler is a tool that use for decompiling a .class file into a java source file. i had tried this tool one year ago on windows environment (decompile a java class file) and i feel is very useful whenever i have the class files but i need to analyze the codes from the java source files.
recently, i did a personal research on how to make it work on ubuntu and i just figured out that there is such plugin available in intellij idea as well. the jad plugin doesn’t work for me from the available plugins in intellij which i can download via file > settings. i’m not sure what’s the reason and probably i missed out some settings. whenever i open a .class file, it will ask for the path of the jad executable file. i assumed it should be worked after i installed the plugin but it requires me to point to the executable file from the jad plugin that i downloaded from another page (http://sourceforge.net/projects/ideajad/).
if the jad executable file cannot be found, there will be a dialog box asking for the path. another method to set the path is via file > settings > intellijad project.
when i had set the path for the jad executable file and tried to open a .class file, i got the following error:-
executing jad: '/opt/idea/8.1/lib/ideajad/bin/linux/jad -s java -radix10 -lradix10 -l64 -pv3 -pc _cls -pf _fld -pl _lcl -pm _mth -pp _prm -pe _ex -p /tmp/ij1258071358360/barchart.class'
...
result is empty. re-executing jad: '/opt/idea/8.1/lib/ideajad/bin/linux/jad -s java -radix10 -lradix10 -l64 -pv3 -pc _cls -pf _fld -pl _lcl -pm _mth -pp _prm -pe _ex -p /tmp/ij1258071358360/barchart.class'
...
...
...
...
/opt/idea/8.1/lib/ideajad/bin/linux/jad: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: no such file or directory
note: i tried with the command: sudo apt-get install libstdc++2.10-glibc2.2 but it doesn’t work for me.
solution
1. download the package fromhttp://packages.ubuntu.com/dapper/i386/libstdc++2.10-glibc2.2/download
2. sudo dpkg -i libstdc++2.10-glibc2.2_2.95.4-24_i386.deb(执行到这一步就解决了)
3. if you don’t have the following items in the package, please install:-
sudo apt-get install libexpat1sudo apt-get install libtiff44. sudo ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0
5. sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
