How to generate executable of java project in eclipse

48,934

Solution 1

I recommend launch4j to create executables from JAR files.

Solution 2

First export your project as a *.jar in eclipse.

Then, you can use JSmooth to make an *.exe file.

Links:

http://www.vogella.com/articles/Eclipse/article.html

http://jsmooth.sourceforge.net/docs/jsmooth-doc.html

Solution 3

The most common way to generate an EXE from a jar file is to use whats known as a "wrapper".

one of the more popular wrappers is http://www.jwrapper.com/ which i belive mojang uses to wrap minecraft for windows.

However if you want to generate a purely native EXE that runs as a standalone you will need a native compiler for example: http://jnc.mtsystems.ch.

At the end of the day java is designed to run on a VM double clicking on windows opens it up anyway, but if you really do want to make an EXE then the above methods should work.

Solution 4

You can use JSMOOTH to wrap your jar file into .exe file. from wiki ->JSmooth is a tool for wrapping Java JAR files into Windows Portable Executable EXE files.

For more info you can see this answer

Share:
48,934
Java Curious ღ
Author by

Java Curious ღ

Updated on August 27, 2020

Comments

  • Java Curious ღ
    Java Curious ღ over 3 years

    I am trying to make an executable file of my Java Application but I don't know how to do that.

    I know how to generate an executable jar file, but I want to make an executable application.

    I'm using eclipse indigo to make the java application and to generate the jar file.

    How to make the executable?

  • Java Curious ღ
    Java Curious ღ over 10 years
    then what to do for that ?? any guidance sir ??
  • ankit
    ankit over 10 years
    JSmooth .exe wrapper java jar file to exe executable JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself. When no VM is available, the wrapper can automatically download and install a suitable JVM, or simply display a message or redirect the user to a web site. JSmooth provides a variety of wrappers for your java application, each of them having their own behaviour: Download: jsmooth.sourceforge.net
  • Codebling
    Codebling over 8 years
    @ScaryWombat believe you're referring to Visual J++
  • Amol Patil
    Amol Patil almost 6 years
    JSMOOTH requires admin access in our environment which is actually not possible for me in out environment.