• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

making a exe in java

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java exe wrapper
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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.
 
sonia arora
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok thanks.
i would try as you say.
 
reply
    Bookmark Topic Watch Topic
  • New Topic