7

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?

10
  • What do you mean by Executable Application? An exe? Commented Aug 27, 2013 at 6:46
  • @NarendraPathai - yes sir. Commented Aug 27, 2013 at 6:46
  • oh no no, i am beginner in java so want to know about it. otherwise still i don't have posted such a question. Commented Aug 27, 2013 at 6:51
  • Maybe this stackoverflow.com/questions/147181/… helps you. It was already asked here on stackoverflow. Commented Aug 27, 2013 at 6:53
  • There are plenty open executable generators available. You can view their source if you are curious. Such type of questions are not good for SO. read stackoverflow.com/help/on-topic Commented Aug 27, 2013 at 6:54

5 Answers 5

7

I recommend launch4j to create executables from JAR files.

Sign up to request clarification or add additional context in comments.

Comments

1

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

1 Comment

JSMOOTH requires admin access in our environment which is actually not possible for me in out environment.
1

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

Comments

1

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.

Comments

0

Many years ago Microsoft use to be able to generate exe from java code, but I do not believe that Eclipse has this feature.

3 Comments

then what to do for that ?? any guidance sir ??
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
@ScaryWombat believe you're referring to Visual J++

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.