Java Decompiler【java 反编译】:开发了反编译工具。能够方便查看*.class 文件源代码。以下介绍几种查看源代码的方式:工具&插件
1、JD-GUI
JD-GUI 是显示java 源码 *.class文件的 图形界面工具。能够在这里下载:JD-GUI-DownLoad
下载下来后。打开该工具。直接将jar包 拖拽到 显示窗体就可以查看源码。
举例:通过 jd-gui.exe 工具 查看 xUtils-2.6.14.jar 包 源代码:
!没文化真可怕啊!插指算了算:以后要“多探讨。多接触。添加知识的广度。多研究,多细学,添加知识深度!” 。以下概要介绍 Eclipse,android studio 下 安装插件,查看 jar包 *.class 文件。
2、JD-Eclipse
(1)下载 JD-Eclipse 插件。下载后。打开Eclipse。选择:Help-->Install New Software...-->add --archive... 按步骤操作就可以:
安装后,重新启动Eclipse,应该能够查看 *.class文件的代码。
ADD and Archive...
选择要安装的插件:
选中后,一步一步next,之后重新启动Eclipse。
3、JD-IntelliJ
JD-Intellij 是 IntelliJ IDEA 的插件,安装了这个插件,能够方便查看 jar包源代码。
以android studio为例: 能够离线安装也能够在线安装。
(1)、离线安装步骤:
a、下载jd-intellij-0.6.zip ;
b、Android studio File->Settings..->Plugins -->install plugin from disk..导入下载的插件
c、重新启动android studio
(2)、在线安装
Android studio File->Settings..->Plugins-->Browse repositores..搜索JD-Intellij
重新启动studio后,查看 jar包的class文件 源代码:
參考资料:
有所不足、多多指正!