Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating exe for my java Application in eclipse? [duplicate]

Tags:

java

eclipse

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

like image 826
Praveen Avatar asked Jun 10 '10 10:06

Praveen


People also ask

How do I export an Eclipse project to exe?

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.

Can we create EXE file in Java?

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.


1 Answers

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.

like image 150
Todd Owen Avatar answered Oct 30 '22 14:10

Todd Owen