The HelloWorld Title is a smoke test for Magic Lantern. The HelloWorld Title exercises a simple Digital Playprint containing a Stage, a 2D Set and a Scene that uses an Actor to display "Hello World!" text. This page discusses how to build the title and run it using the Magic Lantern SDK targeting the Java2D platform.
Ant may be used to build the HelloWorld Title.
The Ant build.xml file has a dependency on Magic Lantern mastering tasks for generating the Digital Playprint. Copy the Magic Lantern codegen Jar to the "lib" directory where Ant has been installed. For example, on a Linux platform:
sudo cp $MLE_ROOT/lib/java/tools/codegen.jar $ANT_HOME/lib
To build the title, do the following:
$ cd $MLE_HOME/Titles/helloWorld/java/HelloWorld
$ ant
This will place the build artifacts (.class files) in the "bin" directory.
A jar package, HelloWorld.jar, may be created by using the "package" target.
$ cd $MLE_HOME/Titles/helloWorld/java/HelloWorld
$ ant package
The HelloWorld.jar package will be placed in the "build" directory.
To run the title from a command shell:
$ cd $MLE_HOME/Titles/helloWorld/java/HelloWorld
$ java -jar build/HelloWorld.jar ../HelloWorld/src/HelloWorld.dpp
Note that the current implementation of the title requires the Digital Playprint to be specifed as a command line argument.