my dog learned polymorphism*
The moose likes Other Open Source Projects and the fly likes making a exe in java 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 » Products » Other Open Source Projects
Bookmark "making a exe in java" Watch "making a exe in java" New topic
Author

making a exe in java

sonia arora
Ranch Hand

Joined: Mar 10, 2010
Posts: 31
I have developed a small application in java.
How can i convert this into a .exe file ,
so that it could be independently distributed or run on any other machine?

because in java .class files are formed...
can anyone help?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Java exe wrapper


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


so that it could be independently distributed or run on any other machine?

You are aware that Java is designed to be "write once, run anywhere" whereas executables will only run on Windows (and OS/2) machines? If you are looking for a simple way to deploy have you considered Java Web Start?

Converting a Java application to an executable is not really possible. You can wrap the application up as an executable (google for Java wrappers) or you can use an ahead of time complier (but these have downsides, depending on how your applciation is written). You can also get commercial installers that will package up the JVM and all configuration you might need, but this is kind of like Java Web Start. If all you really want to do is wrap up the start command you could just provide a batch file with your jar file.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sonia arora
Ranch Hand

Joined: Mar 10, 2010
Posts: 31
ok thanks.
i would try as you say.
 
 
subject: making a exe in java