36 | Chapter 2: Getting Started with AIR Development
- Make sure you have configured the SDK correctly, so
that the ADL tool can be found. - Make sure that you are running the ADL command from
the same directory that contains theAIRHelloWorld.xml
file. - Make sure that your application descriptor file contains
well-formed XML. - Make sure the information in the application descriptor
file is correct. Pay particular attention to the application
attributes and therootContent value. - Make sure that the AIRHelloWorld.html and
AIRHelloWorld.xml files are in the same directory.
Once you have fixed any issues, and your application is run-
ning correctly, you can explore how to get information from
the application at runtime.
Capturing Output from the Application at
Runtime
When running applications from the command line via ADL,
there are a number of ways to get runtime information and
debugging information from the application.
Runtime JavaScript errors
Any runtime errors that arise from JavaScript execution
while an AIR application launched via ADL is running will
be output to ADL’s standard out.
Let’s modify our application to cause it to generate a
JavaScript runtime error. Change the contents of
AIRHelloWorld.html to:
<html>
<head>
<title>AIRHelloWorld</title>
<script>