title: Eclipse Not recognizing Environment Variable (Mac OS Lion, Eclipse Juno 64-BIT)
body: <p>I need some help with trying to setup C++/Java build using Eclipse. I am following this tutorial (<a href="http://www.raywenderlich.com/11283/cocos2d-x-for-ios-and-android-getting-started" rel="nofollow noreferrer">http://www.raywenderlich.com/11283/cocos2d-x-for-ios-and-android-getting-started</a>) but just can't understand why I keep getting "please define NDK_ROOT".</p>
  
  <p>I updated the create-android-project.sh file and applied this cmd in Terminal: export NDK_ROOT="same path to NDK as in create-android-project.sh file". When I ran the 'create-android-project.sh', I had no problem with creating the project, Running the newly created project's build_native.sh also ran with any issues.</p>
  
  <p>So after following the steps to update 'Build Command' from default to whatever the tutorial is asking should compile the C++ and Java files in the project, without having to run the build_native.sh in terminal and the project in Eclipse.</p>
  
  <p>If I remove the custom build to default all compiles and runs on the project on both the emulator and device.</p>
  
  <p>I've attached a screenshot of the settings and Console log of the project build.</p>
  
  <p>Dev Environment:
  Mac OS 10.8 (Lion)
  Eclipse Juno 64-BIT
  Cocos2d-x v2.0-x-2.0.3
  NDK: android-ndk-r7-crystax-5.beta2</p>
  
  <p>Please advise.<img src="https://i.stack.imgur.com/dOtn2.png" alt="enter image description here"></p>