• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Creating an .exe file, or some way to start a java application style program

 
Ranch Hand
Posts: 99
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

This is perhaps a really "uh, duhhhh" quesiton, but, I was wondering how I might go about creating a launcher for a program that I am designing. It is not an applet or something that only runs via a webpage, and it is not a simple library file that I will later put into a larger project. It is a "real" java application style program. How might I go about creating an .exe file for it, or an equivalent? I am not interested in checking to see if a java VM exsists, or any other stuff, I plan on doing that manually when I decide I want to install it on a machine. Besides, I must also install a database server, configure it and so on anyway. I am using Eclipse Indigo. Anyone have any ideas?

Thanks for the advice in advance!

Greg
 
Greg Reeder
Ranch Hand
Posts: 99
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was correct, it was an 'uh, duhhhh' question. Sorry.


Answer for eclipse, Export, java, runnable jar file, pick a destination, finish. I am sorry for the waste of time.

Greg
 
Ranch Hand
Posts: 47
Netbeans IDE Eclipse IDE Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could also use nsis. This is an open source installer. With this installer you could do all the pre-installation steps like installing db, check java version and so on. Better automate then do manually and forget steps. You can incorporate the build of the installer in ant.

Regards,
Ben
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After creating jar file you can use a commercial application like "exe4J" to convert your jar file into an .exe file

You can try it, they are offering the trial version of exe4J software.

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic