# MacOS – the PATH environment variable and how to set it up to use the Android SDK

androidmacosterminal

I'm a mac noob, and a terminal noob.

I'm used to installing things in Windows, and now I'm trying to set up Eclipse with the Android SDK on Mac and I'm having some trouble.

I downloaded Eclipse and stuck it in a folder I called Android, then downloaded the Android SDK and stuck it in that folder as well. The next step of these instructions says this:

export PATH=$PATH:/Android/android-sdk-mac_x86/tools I have absolutely no idea what any of that means. Can someone help to dumb it down a little for me? That instruction presupposes way too much Mac/unix knowledge on my part. #### Best Answer The PATH environment variable is simply an order list of directories over which (typically) executables are searched for and run. In short, to get you through the setup you'll need to edit /Users/<username/.bash_profile to include export PATH=$PATH:/Android/android-sdk-mac_x86/tools

echo 'export PATH=\$PATH:/Android/android-sdk-mac_x86/tools' >> ~/.bash_profile
That's it. If you already have a .bash_profile, this will add that line to the end of the file. If you don't already have one, it will create one for you.