The best to start a new launcher is to copy one of these 2 templates included in the SDK.
Let's assume we want to create an "imaginary" launcher.
The preparation process is pretty simple and consist in doing the following:
Congrats! you compiled your first launcher.
| Name | Comment | Source, configuration & build script |
| success | Launcher returning always success |
src/com/xqual/xlauncher/success/CLauncherImpl.java src/com/xqual/xlauncher/success/success.xml src/build/buildSuccessLauncher.bat |
| random | Launcher returning random results |
src/com/xqual/xlauncher/random/CLauncherImpl.java src/com/xqual/xlauncher/random/random.xml src/build/buildRandomLauncher.bat |
- Copy the folder
src/com/xqual/launcher/randominsrc/com/xqual/launcher/imaginary - Rename
src/com/xqual/launcher/random.xmlinsrc/com/xqual/launcher/imaginary.xml - Modify the package and the static variable TRACE_HEADER in the
CLauncherImpl.javasource file - Copy and rename
build/buildRandomLauncher.batinbuild/buildImaginaryLauncher.bat - Edit the build script
buildImaginaryLauncher.batand change
- the variableJAVA_HOMEto point to your JDK.
- the name of the launcher in the scriptXSTUDIO_LAUNCHER_NAME=imaginary - Run
buildImaginaryLauncher.bat - You should get a file
imaginary.jarin the bin folder
Congrats! you compiled your first launcher.