- #1
jaredmt
- 121
- 0
I have Jbuilder2007 and I am wondering if there is a way i can decompile .exe files so i can read the code in java.
jaredmt said:ok, so basically there is no way to edit a .exe file? i thought maybe there was a way the code could be translated to java or pseudocode or something
dwahler said:AFAIK, there is currently no way to reliably and automatically reverse-engineer machine code to a high-level language; it's a much more complex problem than you might think.
No, not all .exe files can be decompiled to Java. Only .exe files that were originally written in Java and then compiled to .exe can be decompiled back to Java.
It depends on the circumstances. If the .exe file is a proprietary software and the decompilation is done without the permission of the owner, it may be considered illegal. However, if the .exe file is open source or the owner gives permission, then it is typically considered legal.
There are various tools available for decompiling .exe files to Java, such as JD-GUI, JAD, and DJ Java Decompiler. These tools can be downloaded and installed for free from the internet.
Yes, it is possible to recompile the decompiled Java code back into a .exe file. However, the resulting .exe file may not work exactly the same as the original one, as some information may have been lost during the decompilation process.
Yes, there are some limitations to decompiling an .exe file to Java. Depending on the complexity of the code and the tools used, the decompiled Java code may not be an exact replica of the original code. Additionally, some code may be obfuscated, making it difficult or impossible to decompile back to Java.