Android SDK r20 - Windows 7 - 未找到安装 Java JDK
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12048101/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android SDK r20 - Windows 7 - Install Java JDK Not Found
提问by teynon
Android SDK installation doesn't find JDKis not the same release as this, and the solution "back" then "next" doesn't work.
Android SDK 安装未发现JDK与此版本不同,“返回”然后“下一步”的解决方案不起作用。
I have tried installing various versions of Java and nothing seems to be working. I've been trying to get this installed for the last 3 days. Solutions I have tried that do NOT work:
我尝试安装各种版本的 Java,但似乎没有任何效果。在过去的 3 天里,我一直在尝试安装它。我尝试过的解决方案不起作用:
- Pushing the back button then the next button.
- Adding an Environment Variable for JAVA_HOME that points to the System32 path and the actual java install directory.
- Installing various versions of Java. (Java 6 and Java 7)
- 按后退按钮,然后按下一步按钮。
- 为指向 System32 路径和实际 java 安装目录的 JAVA_HOME 添加环境变量。
- 安装各种版本的Java。(Java 6 和 Java 7)
The install file is called installer_r20.0.3-windows
and is the current exe available at http://developer.android.com/sdk/index.html
安装文件被调用installer_r20.0.3-windows
并且是http://developer.android.com/sdk/index.html 上可用的当前 exe
采纳答案by Lucifer
Ok, looking at to your JAVA_HOME path which is C:\Program Files\Java\jdk1.6.0_34\bin
I suggest you to change it as C:\Program Files\Java\jdk1.6.0_34\
. There is no need to add bin folder's path in the JAVA_HOME Path.
好的,看看您的 JAVA_HOME 路径,C:\Program Files\Java\jdk1.6.0_34\bin
我建议您将其更改为C:\Program Files\Java\jdk1.6.0_34\
. 不需要在JAVA_HOME Path中添加bin文件夹的路径。
回答by Eric F.
On my Win7 Ultimate 64 bits/ i need multiple things
在我的 Win7 Ultimate 64 位/我需要很多东西
- Set SystemEnvironment Variable JAVA_HOME = C:\Program Files\Java\jdk1.7.0_07
- Add the same value to SystemEnvironment Variable PATH, but make sure to put it before system32 path PATH = C:/Program Files/Java/jdk1.7.0_07;C:\Windows\system32; ....... (... = current value)
- and most important , i guessed. Rename c:\windows\system32\java.exe -> c:\windows\system32\java.exe.old
- Restart the installer (my case = installer_r20.0.3-windows.exe )
- 设置系统环境变量 JAVA_HOME = C:\Program Files\Java\jdk1.7.0_07
- 将相同的值添加到 SystemEnvironment Variable PATH,但确保将其放在 system32 路径之前 PATH = C:/Program Files/Java/jdk1.7.0_07;C:\Windows\system32; .......(...... = 当前值)
- 最重要的是,我猜。重命名 c:\windows\system32\java.exe -> c:\windows\system32\java.exe.old
- 重新启动安装程序(我的案例 = installer_r20.0.3-windows.exe )
Voila!
瞧!
This might help safe other's time
这可能有助于安全其他人的时间
回答by daniele
Setting JAVA_HOME environment variable in System variable to C:\Program Files\Java\jdk1.7.0_07\
did solve my problem.
在系统变量中设置 JAVA_HOME 环境变量C:\Program Files\Java\jdk1.7.0_07\
确实解决了我的问题。
A couple of points to note.
有几点需要注意。
- No need to specify bin or jre folder name.
- You will need to cancel and restart the Android SDK installation. Previous/Next may not work.
- I just copied the folder name from Windows explorer address bar. No need to replace the
\
with/
.
- 无需指定 bin 或 jre 文件夹名称。
- 您将需要取消并重新启动 Android SDK 安装。上一个/下一个可能不起作用。
- 我刚刚从 Windows 资源管理器地址栏中复制了文件夹名称。无需更换
\
用/
。