title: Cannot run program "adb": error=2, No such file or directory while executing through eclipse
body: <p>I am trying to automate android devices using appium in Mac machine(Yosemite OS).</p>
  
  <p>I downloaded and set all the required PATHS like sdk,build-tools,tools,paltform-tools,platforms and able to run the adb commands through terminal sucessfully.</p>
  
  <p>But I written sample below java code</p>
  
  <pre><code>**Process p = Runtime.getRuntime().exec("adb devices");** 
  </code></pre>
  
  <p>Getting output:   </p>
  
  <blockquote>
    <p>Cannot run program "adb": error=2, No such file or directory**</p>
  </blockquote>
  
  <p>I am unable to figure out the exact problem, why it is working through terminal and why i am getting error through eclipse even I set path for everything.</p>
  
  <p>Could you please any one suggest me what exactly the issue.Please do the needful.</p>