jar 到 .java 的转换

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5091132/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 09:22:07  来源:igfitidea点击:

jar to .java conversion

javajardecompiling

提问by Vidz

Possible Duplicate:
Where can I find a Java decompiler?

可能的重复:
在哪里可以找到 Java 反编译器?

Can anyone tell me how i can convert jar file to it's corresponding .java source file?

谁能告诉我如何将 jar 文件转换为相应的 .java 源文件?

I have jar file from unknown source. Is it possible to get the corresponding .java source file out of jar?

我有来自未知来源的 jar 文件。是否可以从 jar 中获取相应的 .java 源文件?

回答by Jigar Joshi

You can use java decompiler

您可以使用java反编译器

回答by Svilen

In principle you can decompile any jar file, by using ,for example, JAD http://en.wikipedia.org/wiki/JAD_%28JAva_Decompiler%29

原则上您可以反编译任何 jar 文件,例如使用 JAD http://en.wikipedia.org/wiki/JAD_%28JAva_Decompiler%29

But if the jar was obfuscated the result may not be very pretty. ;)

但是如果 jar 被混淆了,结果可能不是很漂亮。;)

回答by Sankar Ganesh

My fav decompiler is cavaj, you can download from the following url

我最喜欢的反编译器是cavaj,你可以从以下网址下载

http://cavaj-java-decompiler.en.softonic.com/

http://cavaj-java-decompiler.en.softonic.com/

回答by Patrick Trautmann

Normally are in a "jar" archive only the compiled Java files (". class"). But you could theoretically try to decompile these files.

通常在“jar”存档中只有编译的 Java 文件(“.class”)。但是理论上你可以尝试反编译这些文件。

Hereyou'll find e.g. a decompiler

在这里你会发现例如一个反编译器