Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a setup file that will install an executable Jar

I've created a Java application in Eclipse JavaEE on Windows (yay for me!!) and I compiled it into an executable jar. I created a .bat file that runs that jar. I put that all into a folder system with the required images and libraries to run my program successfully.

Now I want to install this onto other computers.

I am OK with just clicking the bat file but I want my users to be able to see the program displayed in the startmenu, and launch it from there. I am thinking of creating a setup.exe to handle the installation, but not sure how (iexpress.exe works for .exe programs) I don't really need the setup.exe it would suffice to just add program to the start menu and point it the bat file, but how??

like image 525
Jabda Avatar asked Oct 04 '12 20:10

Jabda


2 Answers

Take a look at the NSIS tool. A fairly powerful, scriptable, installer creation system with a very manageable learning curve.

like image 116
jpm Avatar answered Sep 24 '22 17:09

jpm


There are a couple of installer generators that either support Java applications, or are specifically designed to create installers for Java programs. Of the latter category IzPack is one of the better known. I've never developed an installer with IzPack so I cannot offer you a developer perspective but I've encountered several software packages that use IzPack (see their references), and the generated installers are very nice.

like image 28
fvu Avatar answered Sep 23 '22 17:09

fvu