PreparationBefore coding a new launcher from scratch, the best is to duplicate one of the two following templates provided in the SDK:
- random launcher (returning random results)
- success launcher (returning only success results)
Let's assume we want to create an "imaginary" launcher. The preparation process is pretty simple and consist in doing the following:
- Copy the folder
- Modify the package and the static variable TRACE_HEADER in the
- Copy and rename
- Edit the build script
- the variable
JAVA_HOMEto point to your JDK.
- the name of the launcher in the script
- You should get a file
imaginary.jarin the bin folder...
Congrats! you compiled your first launcher.