前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于反编译的搜索

反编译java class并优雅的调试 - miaoyachun - BlogJava miaoyachun posts - 60, comments - 1, trackbacks - 0, articles - 0 BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合 :: 管理 反编译java class并优雅的调试 Posted on 2013-02-22 15:01 Milo的海域 阅读(217) 评论(0) 编辑 收藏 所属分类: Java --> 用jd-eclipse 插件来反编译java class文件的输出还是挺nice的,虽然阅读方便了 但是对debug确造成一定的困扰,主要问题是line number的不match. Google了下遇到类似问题的真不少。最终找到了解决方案:http://sourceforge.net/projects/realignmentjd/files/-----------------1. Download JD-Eclipse and JD-GUI - http://java.decompiler.free.fr/ and install. 2. Put a file realignment.jd.ide.eclipse_1.0.2.jar in eclipse/plugins directory. To use Realignment feature it is necessary to open the menu Preferences/General/Editors/File Associations and to select "*.class" file type and to choose "Realignment for JD Class File Editor" for Associated editors. Another possibility is the batch realignment after processing JD-GUI. To work properly you must to switch on the property "Display line numbers" in Help/Preferences of JD-GUI. To use this feature it is necessary to open the menu Preferences/Java/Decompiler/Batch Realignment and click button "Open dialog". Existing limitation: the realignment is performed only for the methods. To work properly it is necessary that the property "Display line numbers" in menu "Preferences/Java/Decompiler" was active.JD-Eclipse插件 + realignment 补丁让优雅的debug class 文件成为可能。如果只是为了阅读class代码,建议不要用realignment 补丁,这样会降低代码的可读性(会多出大量的空行) 新用户注册 刷新评论列表 阿里数据平台事业部诚聘web开发工程师 博客园 博问 IT新闻 Java程序员招聘 标题 请输入标题 姓名 请输入你的姓名 主页 请输入验证码 验证码 * 内容(请不要发表任何与政治相关的内容) 请输入评论内容 Remember Me? 登录 使用高级评论 新用户注册 返回页首 恢复上次提交 --> [使用Ctrl+Enter键可以直接提交] --> 网站导航: 博客园 IT新闻 知识库 C++博客 程序员招聘 管理 相关文章: valgrind memory check on java program maven本地三方依赖包插件addjars-maven-plugin 反编译java class并优雅的调试 一些项目中用到的mvn例子 关于java.library.path Ubuntu上的alternatives 用JNI从C传递结构体到JAVA Jetty SslSelectChannelConnector about file downloading maven project to eclipse java project 项目依赖分析工具 Powered by: BlogJava Copyright &copy; Milo的海域 日历 <2013年2月> 日一二三四五六272829303112345678910111213141516171819202122232425262728123456789 常用链接 我的随笔 我的评论 我的参与 最新评论 留言簿 给我留言 查看公开留言 查看私人留言 随笔分类 C(2) erlang(2) Java(12) Linux(30) MySQL(11) PHP(5) Skills(9) 随笔档案 2013年12月 (2) 2013年10月 (1) 2013年7月 (1) 2013年2月 (1) 2013年1月 (3) 2012年12月 (1) 2012年11月 (2) 2012年10月 (2) 2012年9月 (2) 2012年8月 (2) 2012年7月 (5) 2012年6月 (5) 2012年5月 (9) 2012年4月 (5) 2012年3月 (7) 2012年2月 (9) 2012年1月 (1) DBA dbanotes hellodb MySQL 运维和开发 同事 Cindy-MySQL Expert 搜索 最新评论 1.?re: About mysqldump of MySQL 5.5 backup information_schema & performance_schema databases 挺不错的,转载了~ --moper 阅读排行榜 1.?yum install iperf on Centos5 or Centos6(2315) 2.?关于java.library.path(1409) 3.?用JNI从C传递结构体到JAVA(1195) 4.?Ubuntu12.4如何设置firefox为系统默认浏览器(502) 5.?几个ssh管道用法(430) 评论排行榜 1.?About mysqldump of MySQL 5.5 backup information_schema & performance_schema databases(1) 2.?Use ssh-copy-id avoid inputing password(0) 3.?几个ssh管道用法(0) 4.?Notes for SNMP(0) 5.?A text2graph tool: Graphviz(0)