终端 - dex2jar mac

时间:2017-03-23 06:01:10

标签: java macos terminal dex2jar

我正在尝试将.dex转换为.jar,我的桌面上有dex2jar,我还将classes.dex文件放在桌面上。

我使用d2j-dex2jar.sh导航到MacBook-Pro:dex2jar Username$ ./d2j-dex2jar.sh,现在我有了这个选项:

d2j-dex2jar -- convert dex to jar
usage: d2j-dex2jar [options] <file0> [file1 ... fileN]
options:
 -d,--debug-info              translate debug info
 -e,--exception-file <file>   detail exception file, default is $current_dir/[fi
                          le-name]-error.zip
 -f,--force                   force overwrite
 -h,--help                    Print this help message
 -n,--not-handle-exception    not handle any exception throwed by dex2jar
 -o,--output <out-jar-file>   output .jar file, default is $current_dir/[file-na
                          me]-dex2jar.jar
 -os,--optmize-synchronized   optmize-synchronized
 -p,--print-ir                print ir to Syste.out
 -r,--reuse-reg               reuse regiter while generate java .class file
 -s                           same with --topological-sort/-ts
 -ts,--topological-sort       sort block by topological, that will generate more
                           readable code
 -v,--verbose                 show progress
version: reader-1.15, translator-0.0.9.15, ir-1.12

我想将classes.dex文件转换为classes.jar任何人都可以建议我如何执行此操作吗?

d2j-dex2jar [options] <file0> [file1 ... fileN]

1 个答案:

答案 0 :(得分:0)

./ d2j-jar2dex.sh classes.dex -o output.jar