mac eclipse 执行adb 命令,提示command not fount

java执行命令: p = Runtime.getRuntime().exec(commandStr);

[INFO ] 执行命令结果:nullbash: adb: command not found

 

 

java.io.IOException: Cannot run program "adb": error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

at java.lang.Runtime.exec(Runtime.java:620)

at java.lang.Runtime.exec(Runtime.java:450)

at java.lang.Runtime.exec(Runtime.java:347)

 

posted @ 2017-01-13 10:58  testway  阅读(721)  评论(0编辑  收藏  举报