Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Reference

(nextflipdebug5) #1
Setting Up the AIR SDK and Command-Line Tools | 27

If you get an error that the file cannot be found, then check
the following things:



  • Make sure that the bin and runtime directories are
    included in the directory

  • Make sure that you included the path to
    directory correctly in the PATH environment variable.

  • Make sure that you opened a new Console window
    before running the command.


Mac


There are a number of ways to add the path to the AIR SDK
to your system path, depending on which shell you are using,
and how you specify user environment variables.


The instructions below show how to modify your path envi-
ronment variable if you are using the bash shell.


1.Open the Terminal program (/Applications/Utilities/
Terminal)
2.Make sure you’re in your home directory by typingcd
and pressing enter.
3.We need to check to see if one of two files are present.
Run the following commandls –la
4.Look for a file named either.profile or.bashrc.
5.If you have neither the.profileor.bashrcfile, then create
the.profile file with the following command:
touch .profile
6.Open the.profile or.bashrc file with a text editor.
7.Look for a line that looks similar to this:
export PATH=$PATH:/usr/local/bin
8.Add the path to the<SDK_Path>/bindirectory to the
end of this line. For example, if<SDK_Path>/binis at
/airsdk/bin, the export path should look something
like this:
export PATH=$PATH:/usr/local/bin;/airsdk/bin
making sure to separate the entries with a colon.
Free download pdf