wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to generate a exe file for a java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to generate a exe file for a java application" Watch "How to generate a exe file for a java application" New topic
Author

How to generate a exe file for a java application

Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,

Can you tell me as to how I should create a java application for a exe file?
Is there any tool for that?


Padma priya N.G.
Be the change you want to be - Mahatma Gandhi
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

You can find several tools by googling. The question is, why do you want to do this?
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,

I was asked in one of my friends about how to create a exe file for a existing application. Could you please answer it?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41629
    
  55
Indeed, using exe files for Java code has numerous drawbacks. http://www.coderanch.com/how-to/java/JarFiles might be a better alternative.


Ping & DNS - my free Android networking tools app
nir sharma
Ranch Hand

Joined: Sep 11, 2012
Posts: 72

If its a desktop application then you can create a batch file to run the java file.
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Check this article and pay attention to the following:

"You cannot"
"You should not, because that would kill the very purpose of Java"
"You can do that with third party software X and Y"


If you really have a good reason for it, and I suspect it's not optional, google for Launch4j.


The quieter you are, the more you are able to hear.
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Padma priya Gururajan wrote:Could you please answer it?


I already did: Google.


 
jQuery in Action, 2nd edition
 
subject: How to generate a exe file for a java application