Created
December 7, 2017 06:21
-
-
Save longforfreedom/5d5f9fef1411921ff6be9880bcf5926c to your computer and use it in GitHub Desktop.
调用IDEA反编译整个Jar包
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 调用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 "C:\Program Files\JetBrains\IntelliJ IDEA 2017.3\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解压即可)其实是用fernflower<https://github.com/fesh0r/fernflower>实现的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment