Docs (very short right now)


Users start your application with launch4j.exe, so it's best to give it a meaningful name like myApp.exe.
You need to supply a configuration file named the same way as launch4j executable, in our example myApp.cfg or launch4j.cfg.
The user may pass command line arguments for your app, like:
myApp.exe --compress filename    would become:    javaw.exe -jar myApp.jar --compress filename

configuration file format (<> mandatory  [] optional):
[cd workingDirectory]
<exe javaw.exe/java.exe_path>
<args -jar myApp.jar [...]>
[splash myAppSplash.bmp <
waitfor Window Title of My Application>]

the waitfor property is very important, it's responsible for disposing the splash screen when your application window becomes visible. The argument must exactly match the window's title, if not you'll receive an 'operation timed out' error message after 45 seconds.

example 1)
directory layout:
myApp/
    dist/
       myApp.*
       myAppSplash.bmp
    jre/

cfg:
cd dist
exe ../jre/bin/javaw.exe
args -jar myApp.jar
splash myAppSplash.bmp
waitfor Window Title of My Application


example 2)
directory layout:
myApp/
    myApp.*
    jre/

cfg:
exe jre/bin/javaw.exe
args -jar myApp.jar