Android SDK 安装:找不到 Java SE 开发工具包 (JDK)
可能的重复:
Android SDK安装找不到JDK
我已将 Java 运行时 6 安装到 <代码>C:\src\libraries\jre6。
我将 Java JDK 安装到 C:\src\libraries\javasdk
。
我的 %PATH% 设置为:
路径=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32 \WindowsPowerShell\v1.0;C:\src\libraries\javasdk\bin;C:\src\libraries\javasdk;C: \src\libraries\javasdk\jdk\bin;C:\src\libraries\javasdk\jdk;C:\src\libraries\jav asdk;
当我运行 Android SDK 安装程序时,出现错误:
“未找到 Java SE 开发工具包 (JDK)”
我对 Android SDK 无法真正找到的内容感到困惑。
Possible Duplicate:
Android SDK installation doesn't find JDK
I have installed Java runtime 6 to C:\src\libraries\jre6
.
I installed Java JDK to C:\src\libraries\javasdk
.
My %PATH% is set to:
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32
\WindowsPowerShell\v1.0;C:\src\libraries\javasdk\bin;C:\src\libraries\javasdk;C:
\src\libraries\javasdk\jdk\bin;C:\src\libraries\javasdk\jdk;C:\src\libraries\jav
asdk;
When I run the Android SDK installer I get the error:
"Java SE development Kit (JDK) not found"
I'm at a loss as to what the Android SDK cannot really find.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
Windows 7 32 位具有与 Windows XP SP3 相同的行为。点击“BACK”(返回),然后再次点击“NEXT”(下一步),您就可以安装 Android SDK。
Windows 7 32 bit has the same behaviour as Windows XP SP3. Hit BACK and then NEXT again and you're able to install the Android SDK.
答案很明确,但一些澄清可能会帮助一些不熟悉注册表编辑的人(比如我)。
The answer is bang on, but some clarification that might help some not familiar with registry editing (like me).
在 Windows 7 x64 上,Android SDK 安装程序会在 HKLM\SOFTWARE\Wow6432Node\JavaSoft 注册表分支中查找 JDK。
但实际上 JavaSoft 条目位于
HKLM\SOFTWARE\JavaSoft
中。我将所有JavaSoft分支复制到路径搜索中,然后安装程序找到了JDK。On Windows 7 x64 the Android SDK Installer is looking for the JDK in the
HKLM\SOFTWARE\Wow6432Node\JavaSoft
registry branch.But in reality the JavaSoft entry was placed in
HKLM\SOFTWARE\JavaSoft
. I copied all JavaSoft branch to the path search, and then the installer found the JDK.只需按“后退”,然后按“下一步”,它就会找到它。 Android SDK 安装找不到 JDK
Just press back, then next and it will find it. Android SDK installation doesn't find JDK
Windows 7 64 位 - 与 Windows XP SP3 和 Windows 7 32 位相同的行为:只需设置
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_14
或任何实际路径,启动 SDK,然后当你收到错误消息后 - 点击“BACK”然后再次点击“NEXT”,你就可以安装 Andriod SDKWindows 7 64 bit - same behaviour as windows XP SP3 and Windows 7 32 bit: Just set
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_14
or whatever your actual path, start SDK, and after you'll get error - hit BACK and than NEXT again and you're able to install the Andriod SDK似乎创建环境变量 CLASSPATH 并将其设置为 C:\src\libraries\jre6\lib 解决了我的问题。我下载了 Android SDK zip 文件,将其放在我想要的位置。我能够从那里继续。
It seems that creating and setting my environment variable,
CLASSPATH
, toC:\src\libraries\jre6\lib
fixed my problem. I downloaded the Android SDK zip file, put it where I wanted it. I was able to proceed from there.