1. jadclipse下载地址,【点击下载】, 下载下图中 jadclipse.zip
2. jadclipse包含文件如下图
3. 将 jadclipse_3.3.0.jar, jd.ide.eclipse.win32.x86_64_0.1.3.jar, jd.ide.eclipse_0.1.3.jar 三个jar包放到
eclipse开发工具对应安装目录的plugins目录下, 关闭eclipse, 删除eclipse安装目录下configuration下org.eclipse.update
下的所有文件(可以备份一份到其他位置以防万一, 我直接将 org.eclipse.update 重命名为 org.eclipse.update_bak)
4. 运行eclipse, 打开菜单【Window】->【Preferences】->【Java】->【JadClipse】
将 Path to decompiler 的值设置为 jad.exe所在目录全路径(见下图箭头 3)
将 三个复选框全部勾选(见下图 箭头4) 然后点击【确认】
注: 如果以上没出现可能是jar 包没有下载对(可能对应eclipse版本 我安装的是4.5最新版,也可能是和eclipse版本匹配 我的 是64位的)
5. 打开菜单【Window】->【Preferences】->【General】->【Editors】->【File Associations】
选中 File Types: 中的 *.class, 在下方对应的 Associated editors中选择
【JadClipse Class File Viewer】并设置其为Default, 注:如果Associated editors没有此选择,点击Add进行添加;
同理: 选择 FileTypes中的 【*.class without source】, 也将下方的【JadClipse Class File Viewer】设置为默认
6. 设置完毕,在Eclipse编辑器中已经可以查看.class文件对应的源代码了