-
Notifications
You must be signed in to change notification settings - Fork 0
HelloWorld Title for Java2D
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 specified as a command line argument.
Copyright (c) 2019-2024 Wizzer Works All rights reserved.
Contents
- User Home Page
-
Developer Home Page
- SDK Build Environment using Microsoft Visual Studio
- SDK Build Environment using Microsoft MSBuild
- SDK Build Environment for Linux Platform
- SDK Build Environment for Qt Linux Platform
- SDK Build Environment for J2SE Platform
- SDK Build Environment for Android Platform
- Rehearsal Player Build Environment using Microsoft Visual Studio
- Rehearsal Player Build Environment for Linux Platform