wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

How to convert java application to windows exe

Vijay Kumar Raman
Greenhorn

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: 9990
    
    7

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 http://download.oracle.com/javase/tutorial/deployment/jar/ 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 http://jsmooth.sourceforge.net/

I personally prefer the executable jar approach


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

Joined: Oct 13, 2005
Posts: 36482
    
  16
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
ok..to 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
Bartender

Joined: Sep 20, 2010
Posts: 3371
    
    9
exe4j and install4j are brilliant tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert java application to windows exe
 
Similar Threads
Installation of Application developed in Java Swings
How to Execute a .exe file stored in jar file ?
execute my java exe before windows logon screen
creating .exe file for java application
want to create exe file for java application