java -cp "/Applications/IntelliJ IDEA.app/Contents/plugins/java-decompiler/lib/java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true xxxx.jar xxxdir
xxxx.jar为待编译的jar包
xxxdir为目标目录
然后使用unzip解压
java -cp "/Applications/IntelliJ IDEA.app/Contents/plugins/java-decompiler/lib/java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true xxxx.jar xxxdir
xxxx.jar为待编译的jar包
xxxdir为目标目录
然后使用unzip解压