Not really possible in the general case.
Java doesn't "do" .exe files. The ultimate form of a compiled Java program is a .class or a .jar (which is itself an archive of .class files). What this means is: if you have an .exe, it must have been created from some other language. (So, then, the problem is not a matter of turning something "back" into the original Java, but rather transforming something completely different into Java.)
You could possibly use a decompiler for whatever the original language is, and then write a translator to translate most of that language to Java. But there is no guarantee that would work in general, and it assumes both (a) the existence of a working decompiler for the original language, and (b) that the original language can be mapped sensibly to Java.
You could use a disassembler and translate the assembly code into Java. That would work, but be a colossal pain in the neck for any reasonably complex instruction set -- and, again, no guarantee that there's an equivalent Java function for every machine instruction in the .exe file.
2007-09-11 17:07:55
·
answer #1
·
answered by McFate 7
·
1⤊
0⤋
You generally cannot "decompile" a binary executable into source code.
2007-09-11 13:48:09
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
uhmmmm, you may have to recompile
2007-09-11 13:32:14
·
answer #3
·
answered by RJ 3
·
0⤊
0⤋