How to compile Java into an .exe file?

by moyuhappy on 2008-08-03 17:19:42

You can turn a regular Java program into a true exe, meaning a single exe file that can run on machines without the JVM installed. Common tools for this include JET and gcj. The former is commercial, and even the exe it produces still requires a bunch of dll files. I recommend using gcj, which is available for both Windows and Linux. You can directly download the zip package, no installation is required, and it comes with many examples as well as some build batch files. In terms of principle, gcj implements...