简体   繁体   English

JAVA_HOME不起作用

[英]JAVA_HOME not working

So I was installing the Android SDK on my new computer (Win 7, 64bit) and I installed the JDK, but when I go to install the SDK it says this 因此,我在新计算机(Win 7,64位)上安装了Android SDK,并安装了JDK,但是当我去安装SDK时,它说

Android SDK

The enviromental variable is set as well, any ideas? 还设置了环境变量,有什么想法吗?

环境变量

And yes I have tried to go back and then next D: 是的,我试过回去再下一个D:

I read somewhere that it might be a bug...The work around was to press back and then Next and it should find the JDK. 我在某个地方读到它可能是一个错误...解决方法是先按回去 ,然后单击Next ,它应该找到JDK。

EDIT: it should not be like this: C:\\Program Files\\Java\\jdk1.7.0_03\\bin don't include the \\bin just C:\\Program Files\\Java\\jdk1.7.0_03 then apply and restart your computer. 编辑:它应该是这样的: C:\\Program Files\\Java\\jdk1.7.0_03\\bin不要只包含\\bin C:\\Program Files\\Java\\jdk1.7.0_03然后应用并重新启动计算机。

Hope that helps. 希望能有所帮助。

The value should be something like 该值应类似于

C:\\Program Files\\Java\\jdk1.7.0 C:\\ Program Files \\ Java \\ jdk1.7.0

What version is your JRE? 您的JRE是哪个版本? Is it really located at C:\\Program Files\\Java, or is it in a subfolder of that (eg C:\\Program Files\\Java\\jdk1.7.0)? 它确实位于C:\\ Program Files \\ Java,还是它的子文件夹中(例如C:\\ Program Files \\ Java \\ jdk1.7.0)?

The path is this - 路径是这样的-

C:\\Program Files\\Java\\jdk1.7.0_03\\bin C:\\ Program Files \\ Java \\ jdk1.7.0_03 \\ bin

I had a similar problem and found the answer here: Android SDK installation doesn't find JDK 我遇到了类似的问题,并在这里找到了答案: Android SDK安装未找到JDK

thx to simon for the answer: Use 32-bit JDK not the 64-bit version. simon的答案:使用32位JDK而不是64位版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM