It's not a secret anymore!
The moose likes Java in General and the fly likes  How to convert java application to windows exe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark " How to convert java application to windows exe" Watch " How to convert java application to windows exe" New topic

How to convert java application to windows exe

Vijay Kumar Raman

Joined: Oct 19, 2010
Posts: 12
I have a standalone java application (With a UI screen with login page in Applet and AWT) which i have to distribute to my clients as EXE. The client will simply add the exe in the desktop and on clicking the icon the application should be launched displaying the Login screen. kindly help....
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10825

Welcome to the Ranch.

If you create an exe you will be tied down to the windoze platform.
Usually, the recommended way is to create an executable jar file. More details at The Manifest section will tell you how to create a self executable one.
However, if you still wish for an exe, you can use options like

I personally prefer the executable jar approach

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46367
If you have the file associations set, to associate .jar with the Java runtime, you can double-click a .jar and it will be executed.
siddhu Math
Ranch Hand

Joined: Aug 10, 2006
Posts: 46 answer your question there is a tool (Install Shield) which we used for our application which is built using various components like java,c++ etc ..I do not know if there is any other tool of the same but to be clear this is not a free tool you need to buy it.....

Mathew Mintalm
Ranch Hand

Joined: Feb 21, 2010
Posts: 103

You can use this Useful exe4j aplication.

Also it can create splash screen for your aplication.
Stephan van Hulst

Joined: Sep 20, 2010
Posts: 4625

exe4j and install4j are brilliant tools.

The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
I agree. Here's the link:
subject: How to convert java application to windows exe
It's not a secret anymore!