Public: Technology Reviews : Java MS Windows Launchers
This page last changed on May 03, 2007 by scytacki.
The following page has a very complete set of link on this subject as well as discussing the pluses and minuses of all the different options for launching a java program.
NSIS http://nsis.sf.net can be used to create an exe file that runs a java program. It makes relatively easy to search for java in several places and provide messages to the user. There is an example of this described at the bottom of the page with the necessary files.
JSmooth is a java application that builds java exe launchers. I think it only runs
Launch4J this is very similar to JSmooth. However this one will work on linux.
The JeludeCD.nsi file attached is an example of a NSIS launcher. It is based on the Jelude projects nsi script. This script can be built with the nsis compiler and the ico file. The result is the attached Pedagogica.exe. This file will try to run with java from the harddrive first and then from the CD as a last resort. If it can't find any of these it displays a dialog box. It also sets up a timer so it can't be started within 5 seconds of itself. The script has an option for showing a splash screen but this hasn't been enabled in this case.
|Document generated by Confluence on Jan 27, 2014 16:56|