Possible Duplicate:
Android SDK installation doesn't find JDK可能重复:Android SDK安装找不到JDK
I have installed Java runtime 6 to C:\src\libraries\jre6
.
我已将Java运行时6安装到C:\ src \ libraries \ jre6。
I installed Java JDK to C:\src\libraries\javasdk
.
我将Java JDK安装到C:\ src \ libraries \ javasdk。
My %PATH% is set to:
我的%PATH%设置为:
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;
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:
当我运行Android SDK安装程序时,我收到错误:
"Java SE development Kit (JDK) not found"
“找不到Java SE开发工具包(JDK)”
I'm at a loss as to what the Android SDK cannot really find.
我对Android SDK无法真正找到的东西感到茫然。
6 个解决方案
#1
127
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.
Windows 7 32位与Windows XP SP3具有相同的行为。点击BACK然后再次NEXT,你就可以安装Android SDK了。
#2
10
The answer is bang on, but some clarification that might help some not familiar with registry editing (like me).
答案很明确,但有些澄清可能会帮助一些不熟悉注册表编辑的人(比如我)。
- Run regedit.
- 运行regedit。
- Find [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
- 查找[HKEY_LOCAL_MACHINE \ SOFTWARE \ JavaSoft \ Java开发工具包]
- Right click on the key and click export, then save the file to the desktop.
- 右键单击该键,然后单击“导出”,然后将该文件保存到桌面。
- Right click then click edit.
- 右键单击然后单击编辑。
- Add Wow6432Node to the path of each key in the file. See above (@Rog_enk) for an example. Save.
- 将Wow6432Node添加到文件中每个键的路径。有关示例,请参见上文(@Rog_enk)。保存。
- Back in regedit, click File->Import and select the file from above. Done.
- 返回注册表,单击文件 - >导入,然后从上面选择文件。完成。
- Try the SDK installer again.
- 再次尝试SDK安装程序。
#3
8
On Windows 7 x64 the Android SDK Installer is looking for the JDK in the HKLM\SOFTWARE\Wow6432Node\JavaSoft
registry branch.
在Windows 7 x64上,Android SDK安装程序正在HKLM \ SOFTWARE \ Wow6432Node \ JavaSoft注册表分支中查找JDK。
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.
但实际上,JavaSoft条目放在HKLM \ SOFTWARE \ JavaSoft中。我将所有JavaSoft分支复制到路径搜索,然后安装程序找到了JDK。
#4
7
Just press back, then next and it will find it. Android SDK installation doesn't find JDK
只需按下,然后按下它就会找到它。 Android SDK安装找不到JDK
#5
6
Windows 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
Windows 7 64位 - 与Windows XP SP3和Windows 7 32位相同的行为:只需设置JAVA_HOME = C:\ Program Files \ Java \ jdk1.6.0_14或任何您的实际路径,启动SDK,并在您收到错误后 - 再次点击BACK和NEXT,你就可以安装Andriod SDK了
#6
0
It seems that creating and setting my environment variable, CLASSPATH
, to C:\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.
似乎创建和设置我的环境变量CLASSPATH到C:\ src \ libraries \ jre6 \ lib修复了我的问题。我下载了Android SDK zip文件,把它放在我想要的地方。我能够从那里开始。
#1
127
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.
Windows 7 32位与Windows XP SP3具有相同的行为。点击BACK然后再次NEXT,你就可以安装Android SDK了。
#2
10
The answer is bang on, but some clarification that might help some not familiar with registry editing (like me).
答案很明确,但有些澄清可能会帮助一些不熟悉注册表编辑的人(比如我)。
- Run regedit.
- 运行regedit。
- Find [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
- 查找[HKEY_LOCAL_MACHINE \ SOFTWARE \ JavaSoft \ Java开发工具包]
- Right click on the key and click export, then save the file to the desktop.
- 右键单击该键,然后单击“导出”,然后将该文件保存到桌面。
- Right click then click edit.
- 右键单击然后单击编辑。
- Add Wow6432Node to the path of each key in the file. See above (@Rog_enk) for an example. Save.
- 将Wow6432Node添加到文件中每个键的路径。有关示例,请参见上文(@Rog_enk)。保存。
- Back in regedit, click File->Import and select the file from above. Done.
- 返回注册表,单击文件 - >导入,然后从上面选择文件。完成。
- Try the SDK installer again.
- 再次尝试SDK安装程序。
#3
8
On Windows 7 x64 the Android SDK Installer is looking for the JDK in the HKLM\SOFTWARE\Wow6432Node\JavaSoft
registry branch.
在Windows 7 x64上,Android SDK安装程序正在HKLM \ SOFTWARE \ Wow6432Node \ JavaSoft注册表分支中查找JDK。
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.
但实际上,JavaSoft条目放在HKLM \ SOFTWARE \ JavaSoft中。我将所有JavaSoft分支复制到路径搜索,然后安装程序找到了JDK。
#4
7
Just press back, then next and it will find it. Android SDK installation doesn't find JDK
只需按下,然后按下它就会找到它。 Android SDK安装找不到JDK
#5
6
Windows 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
Windows 7 64位 - 与Windows XP SP3和Windows 7 32位相同的行为:只需设置JAVA_HOME = C:\ Program Files \ Java \ jdk1.6.0_14或任何您的实际路径,启动SDK,并在您收到错误后 - 再次点击BACK和NEXT,你就可以安装Andriod SDK了
#6
0
It seems that creating and setting my environment variable, CLASSPATH
, to C:\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.
似乎创建和设置我的环境变量CLASSPATH到C:\ src \ libraries \ jre6 \ lib修复了我的问题。我下载了Android SDK zip文件,把它放在我想要的地方。我能够从那里开始。