OSError: [Errno 2] No such file or directory

问题:

  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

 

 

 

跟JDK的PATH有关,在终端输入:
java -version
如果出现以下信息,证明JDK的PATH没问题
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

如果没有出现以上信息,则需要配置PATH或下载JDK并配置PATH

注:JDK的PATH要配置在JDK根目录下的BIN

 

你可能感兴趣的:(android编程笔记)