step1:到http://www.kpdus.com/jad.html#download下载Jad的执行程序,解压在任意目录A
step2:到http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Download下载Jad的jar包,放在eclipse的plugin目录下
step3:启动eclipse,打开:Window->Preferences->Java->JadClipse
Path to decompiler:指定到目录A的Jad
step4:Eclipse的Windows--> Perference-->General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。
step5:最关键的一步,在终端下 sudo apt-get install libstdc++2.10-glibc2.2
不然你将会遇到error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory这样的错误
这个问题只有在ubuntu下才会出现
step6:重启eclipse,双击*.class文件,eclipse将自动反编译。