您的位置:首页 > 其它

Jad一个好东西(转载)

2009-11-12 11:22 204 查看
1. 将jad.exe 复制到Java安装目录的jdk\bin目录下,如:D:\tools\Java\jdk1.6.0_02\bin

2. 然后将net.sf.jadclipse_3.3.0.jar复制到myeclipse安装目录下的eclipse\plugins目录下

3. 在myeclipse(或者eclipse)窗口中选择 Window->Preferences->Java->JadClipse,Directory for temporary files:的路径改为jad.exe的路径(如:D:\tools\Java\jdk1.6.0_02\bin\jad.exe),下面一栏为临时文件 存放路径

4. 点击apply(应用)

5. Windows-->Perference-->General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”

6. 点击finish(完成)

7. 这里还没有结束,可能你在点击jar中的*.class文件的时候报错(如:Unmatched braces in the pattern),这是就需要对一些jar包进行修改,如下

8. 在eclipse或者myeclipse中的plugins文件夹下(如:D:\tools\eclipse 3.4\plugins 或者 D:\tools\MyEclipse 6.5\eclipse\plugins)找到 org.eclipse.jdt.core.nl1_3.1.1.jar (或许为org.eclipse.jdt.core.nl-zh_3.3.0.v20081026043401.jar),每个版本不同,记得红色标注的部分

9. 首先使用RAR压缩软件将jar文件解压,找到org\eclipse\jdt\internal\core\util 目录下的messages_zh.properties 文件,有段代码为 disassembler_opentypedeclaration=\ \u201C{\u201D,
有的可能为 disassembler_opentypedeclaration=\ “{”,修改代码 \u201C{\u201D (或“{”) 为 '{'

10. 最后将解压的文件压缩为rar文件,使用重命名将其命名为*.jar文件(最好文件名保持不变)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: