I am trying to automate android devices using appium in Mac machine(Yosemite OS).
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.
But I written sample below java code
**Process p = Runtime.getRuntime().exec("adb devices");**
Getting output:
Cannot run program "adb": error=2, No such file or directory**
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.
Could you please any one suggest me what exactly the issue.Please do the needful.