您的位置:首页 > 编程语言 > Java开发

view class source code with JAD plugin in Eclipse

2016-10-24 23:25 507 查看
The default class viewer doesn't decompile the class file so you cannot open and check the source code, you may down third part App to do that while it is not convenient for debugging. The JAD plugin unable you open it directly in Eclipse.

you just follow below three stages to set the JAD plugin in Eclipse.

First, down plugin. the JAD plugin consists of two files, JAD.exe and net.sf.jadclipse_3.3.0.jar and you can download them from http://download.csdn.net/detail/sushengmiyan/6885693 and http://download.csdn.net/download/csharpqiuqiu/7156175
Then put JAD.exe to any folder, of cause \Java\jdk1.xx\jre\bin\ is recommended. put the net.sf.jadclipse_3.3.0.jar to your Eclipse plugin folder.

At last, you need to do some setting in window->preferences. you need to restart your Eclipse first.

General->Editors->File Associations. add "JadClipse Class File Viewer" for both file type *.class and *.class without source, set as default at the same time.

Java->JadClipse. set the "Path to decompiler" path with the JAD.exe you have set precedently.

OK, now enjoy to view the source of class file directly in Eclipse.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: