### Create Exe from Jar Launch4J

To create an executable, the software Launch4J - Cross-platform Java executable wrapper - is an option to use.
Information: http://launch4j.sourceforge.net
Documentation: http://launch4j.sourceforge.net/docs.html
Get Help: http://sourceforge.net/projects/launch4j/forums/forum/332684.
For more see B4J HowTo Application > Distribute your app.
Example Configuration File
<?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>C:\Daten\b4\b4j\opensource\ropickx\Objects\ropickx.jar</jar>
<outfile>C:\Daten\b4\b4j\opensource\ropickx\Objects\ropickx.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon>c:\Daten\bitsound\OpenIconLib\icons\ico\24x24\actions\list.ico</icon>
<jre>
<path>c:\Program Files (x86)\Java\jre8\bin\</path>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>1.8.0</minVersion>
<maxVersion>1.8.0_45</maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>1.0</txtFileVersion>
<fileDescription>roPickX</fileDescription>
<copyright>(c) 2015, Robert W.B. Linn, Pinneberg, Germany</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>1.0</txtProductVersion>
<productName>roPickX</productName>
<companyName>Robert W.B. Linn</companyName>
<internalName>ropickx</internalName>
<originalFilename>ropickx.exe</originalFilename>
</versionInfo>
</launch4jConfig>
Hints
To get the jre maxVersion, use from the commandline: java -version
Enter from the Output Example 1.8.0_45 as the jre maxVersion
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) Client VM (build 25.45-b02, mixed mode)

Changed: 2018-06-07 09:07, Category: Application, File: T6C159M1146.htm, ID: 1146