• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Greg Reeder
Ranch Hand
Posts: 99
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Ben Ooms
Ranch Hand
Posts: 47
Debian Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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
 
Rumesh Eranga
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • 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.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!