If you're looking to create an executable launcher for your Java Jar files check out the new Jar Template available under the Download column in the upper right of this page.
The Jar Launcher template can be lightly edited for use with your own jar applications. When compiled with CStExe this template will launch your jar applications directly and pass any command line arguments to your jar. Before launching the jar this script will first check if Java is installed and if so that it is greater than or equal to the appropriate version of Java.
If Java is either not found or found to be an incompatible version this script will prompt the user to download the JRE installer, if the user opts to download the script will open the default browser and begin downloading the JRE installer. This script will check if the executable is running on a 32-bit or 64-bit version of Windows and check the appropriate 32-bit and/or 64-bit registries for Java. If the user selects to download the installer this script will direct the user to the appropriate 32-bit or 64-bit JRE installer.
|Designed by Adam T. Ryder|