InteliJ IDEA默认带反编译插件,请问如何把反编译的jar包整体导出java源码来?
天蓬老师2017-04-18 09:29:42
It’s equivalent to batch decompilation. IDEA doesn't seem to have this function. However, jad is actually an excellent disassembly tool that can also be used on the command line. It is not limited to IDEA.
You can write this in the command line, for example:
jad.exe -r -ff -d src -s java classes/**/*.class
Where -r means to restore the directory structure of the source file, -ff means to put the class attribute definition before the class method definition, -d means the output directory, and -s means the file extension.
Extract the jar to be decompiled to the classes directory, and then run the command.
All java files will be placed in the src directory.