无法为Android设置eclipse

时间:2014-02-14 20:57:34

标签: java android eclipse

所以我从teamtreehouse下载了一个捆绑包,我试过安装它,但是我遇到了一些问题。当我执行initial_setup时,这就是我所看到的:

C:\android>REM Create a new AVD

C:\android>echo "Creating a new AVD..."
"Creating a new AVD..."

C:\android>echo no   | .\sdk\tools\android create avd -n Android44 -t 1 --force

'"\java.exe"' is not recognized as an internal or external command,
operable program or batch file.
'xcopy' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
ERROR: SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.

C:\android>echo "AVD created."
"AVD created."

C:\android>pause
Press any key to continue . . .

我做了一些研究,大多数情况下我看到的是改变路径,我尝试了但它仍然给了我相同的结果。

1 个答案:

答案 0 :(得分:0)

  

'“\ java.exe”'无法识别为内部或外部命令,

您需要将Java路径添加到环境变量。

这非常有用:Setting JAVA_HOME at Android SDK

  • 单击“开始”,右键单击“计算机”并选择属性(您也可以按住Windows键并按暂停/中断键)。
  • 点击左侧的高级系统设置。
  • 单击底部的“环境变量”按钮。
  • 单击“系统变量”窗口下方的“新建...”按钮。 输入以下内容:

    变量名称:JAVA_HOME

    变量值:C:\jdk1.6.0_23\(* java在您的计算机中的路径)

  • 单击“确定”,然后关闭在步骤1中打开的系统控制面板