This week's book giveaway is in the Raspberry Pi forum.
We're giving away four copies of Getting started with Java on the Raspberry Pi and have Frank DelPorte on-line!
See this thread for details.
Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

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