Overview of the directory structure
In this example project, any Jangaroo source code is to be located in PROJECT_HOME/src/main/joo/ and any other web application files, such as HTML files, are located in PROJECT_HOME/src/main/webapp/. The Maven build file pom.xml has to be placed directly in PROJECT_HOME and will build the example and create the resulting Web application in the target directory. You could use this example setup and the buildĀ file as a template for small Jangaroo projects.
In PROJECT_HOME, create the following directories and (so far empty) files:
| src/main/joo/HelloWorld.as | for your first ActionScript 3 source file that will be compiled to JavaScript and run in any browser |
| src/main/webapp/index.html | for an HTML wrapper that starts your application |
| pom.xml | for the Maven build instructions for your project |
Let's first look at the actual Jangaroo codeĀ in HelloWorld.as.

