需要一个支持命令行的Java反编译工具
JAD不支持注解
JD-GUI支持注解,但不支持命令行
JD-GUI所使用的JD-Core未开源
记得要先安装mercurial,再编译
Ubuntu安装方式:sudo apt-get mercurial
使用方法:
<code># Outputs all the sources of compiled.jar into out_dir</code>
<code>java -jar jd-core-java-1.2.jar [options] <compiled.jar> [<destination>]</code>
<code>Options:</code>
<code> </code><code>-z - save sources into a zip </code><code>file</code>
<code> </code><code>-n - add line numbers into sources; (</code><code>false</code> <code>by default)</code>
<code> </code><code>-r - not realign line numbers (</code><code>true</code> <code>by default)</code>
jd-core-java-1.2.jar下载链接:
<a href="http://down.51cto.com/data/2230021" target="_blank">http://down.51cto.com/data/2230021</a>
本文转自fatshi51CTO博客,原文链接:http://blog.51cto.com/duallay/1828861 ,如需转载请自行联系原作者