1、下载插件JD-Eclipse,插件下载地址http://jd.benow.ca/
2、打开Eclipse,依次点击Help --> Install New Software
3、点击Add
4、输入Name和选择已下好的zip插件包,点击Add
5、勾上Java Decompiler Plug-in,点击Next
6、点击Next
7、勾选I accept,点击Finish
8、点击Install anyway
9、点击Restart Now,如果没有此界面,待安装成功后,手动重启
10、依次点击Window --> Preferences --> General --> Editors --> File Associations
11、选择*.class,选择JD Class File Viewer,点击Default
12、选择*.class without source,点击Add,选择JD Class File Viewer,点击OK
13、点击Apply and Close
14、配置完成,打开.class文件如图
15、关于JD-Eclipse卸载,依次点击Help --> About Eclipse IDE --> Installation Details,找到并选择JD-Eclipse Plug-in,点击Uninstall