5

Possible Duplicate:
Where can I find a Java decompiler?

Hi,

how to get the source code of a java exe file (an simple application)?

(I know its not obfuscated)

EDIT: Its an Exe File, not more not less, no *.jar

Community
  • 1
  • 1
PassionateDeveloper
  • 14,558
  • 34
  • 107
  • 176

2 Answers2

2

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.

You could take a look at this question for example and start from there: How can I extract java exe to jar

Here: http://www.physicsforums.com/showthread.php?t=243295 it's said that it could be difficult.

Community
  • 1
  • 1
AndrejaKo
  • 1,721
  • 5
  • 25
  • 41
0

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.

solgar
  • 4,312
  • 2
  • 26
  • 30
  • Im sorry, its a Exe File, written in java. – PassionateDeveloper Jul 14 '10 at 18:20
  • 1
    I have no idea how to extract JAR from such file. JAR must be inside this EXE, and this is sometimes done to ease launching of application under Windows - it is not a Java feature, there are some third party tools for creating such EXE and if you don't know structure of such file it can be hard to extract JAR from it. – solgar Jul 14 '10 at 18:25
  • I understand your point, but where I should begin, with what I should beginn? – PassionateDeveloper Jul 14 '10 at 18:30