如何一次反编译多个罐子? [英] How can I decompile many jars at once?

查看:130
本文介绍了如何一次反编译多个罐子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗯,我想主题说的都是:)

Well, I guess subject says it all :)

理想的解决方案是找到某个文件夹中的所有jar(它们可能位于子文件夹中),以及将所有发现的源写入单个src目录,当然维护包文件夹。

The ideal solution would find all jars within a certain folder (they might be in sub-folders), and write all the sources found into a single "src" directory, of course maintaing the package folders.

具体用例:反编译所有Eclipse插件罐

Concrete use case: decompile all Eclipse plugin jars

推荐答案

下载 JAD Decompiler


  • 解开所有jar文件(使用命令 jar xvf )到一些目录。我们称之为 $ {unjar.dir}

  • Unjar all your jar files (using the command jar xvf) to some directory. Let's call this ${unjar.dir}.

为JAD创建一个目录来写出反编译来源。我们称之为 $ {target.dir}

Create a directory for JAD to write out the decompiled sources. Let's call this ${target.dir}.

执行以下命令:

    jad -o -r -sjava -d${target.dir} ${unjar.dir}/**/*.class

选项包括:

-o       - overwrite output files without confirmation
-r       - restore package directory structure
-s <ext> - output file extension (default: .jad)

这篇关于如何一次反编译多个罐子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆