IDEA反编译.md

调用IDEA反编译整个Jar包

IDEA的反编译插件https://github.com/JetBrains/intellij-community/tree/master/plugins/java-decompiler没有在界面上没有提供一次反编译整个Jar包的功能,但可以通过他在命令行中调用他的工具类来反编译整个Jar包调用IDEA的安装目录的"plugins\java-decompiler\lib\java-decompiler.jar"的org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler便可实现.
例如java -cp "/Applications/IntelliJ IDEA.app/Contents/plugins/java-decompiler/lib/java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true dacp-dp-executor-steps-guizhou-0.0.1-SNAPSHOT.jar mysrc

mysrc目录下会有生成的整个Jar包的源文件(打成了jar,用zip解压即可)其实是用fernflowerhttps://github.com/fesh0r/fernflower实现的

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容