Monday, April 18, 2011

Convert Java to EXE

f you are sure you need a real EXE, go straight to AOT Compilers.

"How do I make an .EXE file from my Java application?", "Need help converting jar to exe", "Is it possible to create a Windows executable using Java?" --- these and similar questions are among the most popular topics on Java developer forums. Should you start such a topic today, you are likely to encounter the following three types of replies:

  • "You cannot"
  • "You should not, because that would kill the very purpose of Java"
  • "You can do that with third party software X and Y"

The truth is that there exist two completely different approaches to the creation of native executables from Java applications, addressing different sets of problems. Moreover, under certain conditions some of those problems may be solved without making an EXE. So the most correct way to reply to such a post would be a request for more information, namely what is the goal of conversion to EXE. And the most frequent answer would be

0 comments: