Myeclipse配置jad,查看class文件
2012-07-07 16:45
381 查看
一、MyEclipse
第一步:
下载jad.exe文件和eclipse插件:http://www.varaneckas.com/sites/default/files/jad/jad158g.win.zip
或者
http://nchc.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar
第二步:
(1) 将jad.exe解压到java的jdk\bin目录下
(2) 将jadeclipse插件net.sf.jadclipse_版本号.jar 拷贝到myeclipse安装目录\Genuitec\Common\plugins\目录下。
(3) 在myeclipse安装目录下的dropins中创建eclipse文件夹,然后在eclipse文件夹中分别创建features、plugins文件夹,将 net.sf.jadclipse_3.3.0.jar 分别拷贝到features和plugins文件夹中。
(4)重新启动myeclipse后,配置jadeclipse插件
1)在eclipse窗口下,点击Window > Preferences > Java > JadClipse > Path to Decompiler。(设置jad的绝对路径,如 C:\java\Jad\jad.exe)。Use Eclipse code formatter(overrides Jad formatting instructions)选项打勾,与格式化出来 的代码样式一致。
2)在eclipse窗口下,点击Window > Preferences > Java > JadClipse > Misc,将Convert Unicode strings into ANSI strings选项打勾,避免反编译后可能出现的中文乱码。
注意事项:
本人之前也按照上述步骤配置过,没什么问题,但是最近一次在新电脑上配置时出现了问题,在做好第二步中1、2、3后重启MyEclipse后在点击Window > Preferences > Java 后并没有出现JadClipse,搞了蛮长时间都没弄出来,后来的解决方法是,将自己建的eclipse文件夹先移除,然后重启MyEclipse8.5,在关掉,在将刚刚移除的eclipse文件夹重新移入,在重启Myeclipse8.5就没什么问题了!
========================================
二、Eclipse
1、下载eclipse插件:jadclipse_版本号.jar
http://jadclipse.sourceforge.net/download.html
或者
http://nchc.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar
2、 下载Jad反编译工具:http://www.varaneckas.com/sites/default/files/jad/jad158g.win.zip
3、将jad反编译工具jad.exe放到jdk安装路径的bin目录下面,jadclipse_版本号.jar放到eclipse的安装目录下的plugins目录下。
4、启动eclipse,打开:Window->Preferences->Java->JadClipse.
Path to decompiler,这里设置反编译工具jad的全路径名,就是第三部jad.exe的路径。
5、 安装完成后,eclipse自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。如果没有默认,可以在Eclipse的Windows——> Perference——>General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。
注意:jadclipse_版本号.jar的版本与eclipse的platform版本号相关,如果不匹配则会出现这样的错误:
An error has occurred when activating this view
Expecting non-static method jadclipse.JadclipseBufferManager.createBuffer(Lorg/eclipse/jdt/core/IOpenable;)Lorg/eclipse/jdt/core/IBuffer;
第一步:
下载jad.exe文件和eclipse插件:http://www.varaneckas.com/sites/default/files/jad/jad158g.win.zip
或者
http://nchc.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar
第二步:
(1) 将jad.exe解压到java的jdk\bin目录下
(2) 将jadeclipse插件net.sf.jadclipse_版本号.jar 拷贝到myeclipse安装目录\Genuitec\Common\plugins\目录下。
(3) 在myeclipse安装目录下的dropins中创建eclipse文件夹,然后在eclipse文件夹中分别创建features、plugins文件夹,将 net.sf.jadclipse_3.3.0.jar 分别拷贝到features和plugins文件夹中。
(4)重新启动myeclipse后,配置jadeclipse插件
1)在eclipse窗口下,点击Window > Preferences > Java > JadClipse > Path to Decompiler。(设置jad的绝对路径,如 C:\java\Jad\jad.exe)。Use Eclipse code formatter(overrides Jad formatting instructions)选项打勾,与格式化出来 的代码样式一致。
2)在eclipse窗口下,点击Window > Preferences > Java > JadClipse > Misc,将Convert Unicode strings into ANSI strings选项打勾,避免反编译后可能出现的中文乱码。
注意事项:
本人之前也按照上述步骤配置过,没什么问题,但是最近一次在新电脑上配置时出现了问题,在做好第二步中1、2、3后重启MyEclipse后在点击Window > Preferences > Java 后并没有出现JadClipse,搞了蛮长时间都没弄出来,后来的解决方法是,将自己建的eclipse文件夹先移除,然后重启MyEclipse8.5,在关掉,在将刚刚移除的eclipse文件夹重新移入,在重启Myeclipse8.5就没什么问题了!
========================================
二、Eclipse
1、下载eclipse插件:jadclipse_版本号.jar
http://jadclipse.sourceforge.net/download.html
或者
http://nchc.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar
2、 下载Jad反编译工具:http://www.varaneckas.com/sites/default/files/jad/jad158g.win.zip
3、将jad反编译工具jad.exe放到jdk安装路径的bin目录下面,jadclipse_版本号.jar放到eclipse的安装目录下的plugins目录下。
4、启动eclipse,打开:Window->Preferences->Java->JadClipse.
Path to decompiler,这里设置反编译工具jad的全路径名,就是第三部jad.exe的路径。
5、 安装完成后,eclipse自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。如果没有默认,可以在Eclipse的Windows——> Perference——>General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。
注意:jadclipse_版本号.jar的版本与eclipse的platform版本号相关,如果不匹配则会出现这样的错误:
An error has occurred when activating this view
Expecting non-static method jadclipse.JadclipseBufferManager.createBuffer(Lorg/eclipse/jdt/core/IOpenable;)Lorg/eclipse/jdt/core/IBuffer;
相关文章推荐
- Myeclipse中加入jad方便查看.class文件
- 在Myeclipse中加入jad方便查看.class文件
- Eclipse中查看Class文件源码——Jad插件安装与配置
- myeclipse安装jad插件,实现项目中的所有jar包里的.class文件直接查看
- 在MyEclipse中直接查看class文件(在没有源码的情况下)
- 黑马程序员--Java基础加强--09.【MyEclipse的class文件所在的目录配置】【相对路径解析】【个人总结】
- 解决MyEclipse不拷贝Source Folder下的配置文件到class目录
- Myeclipse/eclipse 安装查看class文件的插件
- [置顶] myEclipse8.5或者eclipse手工安装jd插件(myEclipse8.5或eclipse内直接查看.class文件,jd反编译工具)
- 在没有源码的情况下,在MyEclipse中直接查看class文件
- 【Spring学习笔记-2】Myeclipse下第一个Spring程序-通过ClassPathXmlApplicationContext加载配置文件
- myeclipse中查看.class文件
- 我用myeclipse导入了一个用eclipse开发的项目,项目上有个差报错,是里面几个页面报的假错,部署到tomcat后,tomcat配置里这个项目的running值是false,访问就报404错误,而且不编译class文件
- MyEclipse下直接查看class文件 jadnt158下载
- myEclipse8.5或者eclipse手工安装jd插件(myEclipse8.5或eclipse内直接查看.class文件,jd反编译工具)
- myeclipse中查看class文件
- 关于MyEclipse查看底层源码出现source not found的问题(MyEclipse、Eclipse配置JAD)
- MyEclipse中直接查看class文件的方法
- 黑马程序员--【MyEclipse的class文件所在的目录配置】【相对路径解析】【个人总结】
- MyEclipse查看.class文件