如何获取java exe的代码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3249074/
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
How to get the code of a java exe?
提问by Kovu
Possible Duplicate:
Where can I find a Java decompiler?
可能的重复:
在哪里可以找到 Java 反编译器?
Hi,
你好,
how to get the source code of a java exe file (an simple application)?
如何获取java exe文件的源代码(一个简单的应用程序)?
(I know its not obfuscated)
(我知道它没有被混淆)
EDIT: Its an Exe File, not more not less, no *.jar
编辑:它是一个 Exe 文件,不多不少,没有 *.jar
采纳答案by AndrejaKo
Well, first step would be to try to find program which turned the .jar into exe. After that you would need to study how that program is doing its thing and find a way to reverse it. After that, if you manage to get raw data, you'd use java decompilers.
好吧,第一步是尝试找到将 .jar 转换为 exe 的程序。之后,您需要研究该程序的工作方式并找到一种方法来扭转它。之后,如果您设法获取原始数据,您将使用 java 反编译器。
You could take a look at this question for example and start from there: How can I extract java exe to jar
例如,您可以查看这个问题并从那里开始:How can I extract java exe to jar
Here: http://www.physicsforums.com/showthread.php?t=243295it's said that it could be difficult.
在这里:http: //www.physicsforums.com/showthread.php?t= 243295据说这可能很困难。
回答by solgar
There is no such thing as java exe file. Do you mean by this JAR file? If so search for "java decompiler" in google. You can decompile bytecode to java code, but if code was obfuscated it will be ugly and hard to read and understand.
没有java exe文件这样的东西。你是指这个 JAR 文件吗?如果是这样,请在谷歌中搜索“java 反编译器”。您可以将字节码反编译为 Java 代码,但如果代码被混淆,它将变得丑陋且难以阅读和理解。