Adobe AIR For Web Developers

  Jan 18, 2009     6870 Views      Learning , Web       Comments (4)   

This is a quick guide for setting up the AIR SDK and running your HTML based AIR Desktop Application on windows operating system. This topic might be an old one for seasoned AIR developers but I hope this is useful for AIR beginners like me.

Download and Install Java JRE or JDK: AIR SDK requires either JRE or JDK to be installed on you computer. If you have JRE or JDK installed in your computer move to next step. You can download Java JRE at and the java JDK at

Download and Install AIR SDK: Download AIR SDK at and choose the windows version. Extract the AIR SDK content to another location on your computer. I have extracted the content to "D:\Program Files\Adobe AIR\AIRSDK\". Note: Please do remember the location you've extracted the SDK.

Add the AIR SDK folder’s bin directory to your system path. To do this right click on your systems My Computer > Properties > Advanced > Environment Variable > Systems Variables > Path > and select Edit. At the end of the variable add a semicolon and add your AIR SDK bin folder path. Ex: "D:\Program Files\Adobe AIR\AIRSDK\bin\" and click OK to close them. The AIR SDK contains the AIR Development Tool (ADT) which allows us to Package AIR applications and AIR Debug launcher (ADL) allows us to run and debug AIR application.

Creating Project Folders and Files: Create a Folder called "HelloWorld" into which all the files and other folders will go. Create other folders for the application within the "HelloWorld" folder and named it us "javascripts" for to store all the JavaScript files, "style sheets" for to store application’s css files, "images" for to store graphics and "icons" to store the unique icons of your application.

Application HTML File: A simple HTML file with hello world text.

      <title>Hello World AIR Application</title>
      <H1>Hello World!</H1>

Application Descriptor XML File: This file holds all the information about the application.

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="">

Adobe AIR Application Description File.
1.0: This Application should be run on any version of the AIR runtime after 1.0.
Required and optional parameters for identifying, installing, and launching AIR applications.

<!-- An unique application identifier string. The Maximum length is 255 characters.-->
<!-- Version of the application. -->
<!-- Name of the application.This will appear in About Menu, Shortcuts and Start menu.-->
<filename>Hello World</filename>
<!-- Application's initial window settings.-->
   <!-- Main HTML file of the Application -->
   <!-- Default false. Makes the window visible while it runs.-->

   <!-- Initial width of the window. -->

   <!-- Initial height of the window.-->



Both these files need to be saved in the root of the application directory.

Testing Your Application: Open the Command prompt and Navigate to your project directory and type this command.

> adl yourApplicationFileName.xml

If you’re able to see the AIR application in a separate window then you have successfully created your first AIR Application. If you have got any messages like "adl not being recognized" or "Java not being recognized" which means that you have not installed JRE or the adl utility in not set in your systems path. Correct the issues as described in the previous steps.

Creating a Self-Signed Certificate: Now we can build and distribute the application to end users. To ensure the security of AIR application every application must be signed. ADT will allow us to generate a self-signed certificate. Use the following command in command prompt to generate the certificate.

> adt ‐certificate ‐cn mySelfSignedCertificateName 1024‐RSA mycertName.pfx mycertpassword

mySelfSignedCertificateName: A common name you provide for your certificate. (Ex: your Company’s name.).
mycertName.pfx: The name of the generated certificate file.
mycertpassword: Password for your certificate file that you need to use when packaging the application.
1024-RSA: Key type of the certificate. You can also use 2048-RSA.

Now check the application folder for the newly created certificate. The self-signed certificate is valid for five years period after that you’ll need to release the application using a new certificate.

Packaging Your AIR Application: Use the following command in command prompt for to package the AIR application.

> adt ‐package ‐storetype pkcs12 ‐keystore myCertName.pfx AIRInstallerName.air application.xml helloworld.html

AIRInstallerName.air: Name of the AIR Installer file.

We need to mention all the files, folders, assets that need to package with the application in the command line. Once the command executed it will generate the AIR distributable and installable file for your application in the application directory.

Tweet This Share on Google + Share on LinkedIn Pin It on Pinterest


# Lakshmi on Jan 19, 2009 at 1:10 AM

Kewl blog design Akbar.....Good work....

# Rob on Jan 22, 2009 at 1:36 PM

Have you tried aptana for Air development? There is no need to do all that.

# Akbarsait on Jan 23, 2009 at 12:52 PM


I have posted this for to have an handy guide for using Command prompt to create and package Adobe AIR application. I have used both Aptana and Dreamweaver CS3 for AIR development but using command prompt for doing this will give a better understanding such things. :-)


Thanks :-)

# shalini on Feb 25, 2009 at 3:31 AM

Would you be interested in giving training

About Me

CFML/Web/Mobile/Salesforce/Agile Enthusiast, Husband & Dad, an avid Technology, Android fan and creator of Currently working as a Sr.Consultant & TPM in Phoenix,  Arizona.!
Get Your Next CFML Job!
Newsletter for CFML Community!
ColdFusion Tuts
ColdFusion Tutorials & Resources


Adobe Agile AppCore Creator BlogCFC Books Bootstrap CFBuilder CFEclipse CFML Chennai CFUG Chrome Extensions ColdFusion Google IIS India Learning MySQL Railo Subversion Tools & Utilities Web Windows 7

Latest CFML Jobs @


2017 2016 2014 2013 2012 2011 2010 2009 2008


Akbarsait © 2008 - 2017
Hosting provided by Vivio Technologies

Home | Blog | Sitemap | RSS Feed