Possible Duplicate:
How can I convert my java program to an .exe file ?
hi folks,
how to create the exe file of my application in eclipse? please mention the steps to follow.
Thanks
While Eclipse doesn't have the ability to export a Java project as an ".exe" file, you can export it as a runnable JAR (. jar) file, which works similar to an executable (.exe) file. You can then use a program called Launch4j to convert the JAR file to an executable file.
The Java Packager tool compiles, packages, and prepares Java and JavaFX applications for distribution. The javapackager command is the command-line version. The javapackager utility ships with the JDK. It can generate .exe files with the -native exe flag, among many other things.
If you're just wondering how to run your application outside the Eclipse IDE, then you don't need an exe. Look for the "Export JAR" option in the menu.
If the export is done properly (with a MANIFEST generated), you should then be able to run the JAR file by double-clicking on it, or from the commandline with "java -jar FILENAME.jar". Note that this is a platform-independent format.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With