InteliJ IDEA默认带反编译插件,如何把反编译的jar包整体导出java源码来?
天蓬老师
天蓬老师 2017-04-18 09:27:42
0
1
1559

InteliJ IDEA默认带反编译插件,请问如何把反编译的jar包整体导出java源码来?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
Peter_Zhu

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template