To specify the absolute or relative path (to the executable) of a bundled JRE, itĭoes not rely on the current directory or. Required element that groups JRE settings.
To bring up instead of running a new instance. Unique mutex name that will identify the application. Optional, allow to run only a single instance of the application. Ordered list of libraries used by header. May contain multiple color depths/resolutions.
When the application exits, any exit code other than 0 is considered a crash and the application will be started again. When enabled the launcher waits for the Java application somedir Optional, defaults to false in GUI header, always true in console header. will change it to the parent directory, and so on. will change the current dir to the same directoryĪs the executable. If you omit this property or leave it blank it will have no effect. Change current directory to an arbitrary path relative to the executable. Optional, constant command line arguments. The console header prefixes error messages with this This usually should contain the name of yourĪpplication. Optional, sets the title of the error message box that's displayed if Java cannotīe found for instance. The exe acts then as a launcher and starts the application specified in Launch4j by default wraps jars in nativeĮxecutables, you can prevent this by setting to true. Wrapping it enter the runtime path of the jar relative toįor example, if the executable launcher and the application jar namedĬalc.exe and calc.jar are in the same directory Optional, by default specifies the jar to wrap.
Wrapper waits only if stayAlive is set to true, Type of the header used to wrap the application. SWEDISH|FRENCH_SWISS|GERMAN_SWISS|ITALIAN_SWISS|THAI| SERBO_CROATIAN_CYRILLIC|SIMPLIFIED_CHINESE|SLOVAK|SPANISH_MEXICO| PORTUGUESE_PORTUGAL|RHAETO_ROMANIC|ROMANIAN|RUSSIAN| NORWEGIAN_BOKMAL|NORWEGIAN_NYNORSK|POLISH|PORTUGUESE_BRAZIL| GREEK|HEBREW|HUNGARIAN|ICELANDIC|ITALIAN|JAPANESE|KOREAN| x.x.x.x text text text x.x.x.x text text ĪLBANIAN|ARABIC|BAHASA|DUTCH_BELGIAN|FRENCH_BELGIAN|BULGARIAN|įRENCH_CANADIAN|CASTILIAN_SPANISH|CATALAN|CROATO_SERBIAN_LATIN|ĬZECH|DANISH|DUTCH|ENGLISH_UK| ENGLISH_US|FINNISH|FRENCH|GERMAN| gui|console|jniGui32|jniConsole32 file.exe May be absolute paths or relative to the configuration file path. Alternatively it's possible to passĪll of the configuration parameters through the Ant task.
You can create and edit it conveniently using the graphic user Launch4j requires an xml configuration file for each output executable. To wrap a jar in console mode use launch4jc.exe and Run launch4j.exe or launch4j script without command