Android SDK install: Java SE development Kit (JDK) not found [duplicate]

十年热恋 提交于 2019-12-28 02:39:40

问题


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.


回答1:


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.




回答2:


The answer is bang on, but some clarification that might help some not familiar with registry editing (like me).

  1. Run regedit.
  2. Find [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
  3. Right click on the key and click export, then save the file to the desktop.
  4. Right click then click edit.
  5. Add Wow6432Node to the path of each key in the file. See above (@Rog_enk) for an example. Save.
  6. Back in regedit, click File->Import and select the file from above. Done.
  7. Try the SDK installer again.



回答3:


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.




回答4:


Just press back, then next and it will find it. Android SDK installation doesn't find JDK




回答5:


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




回答6:


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.



来源:https://stackoverflow.com/questions/4394584/android-sdk-install-java-se-development-kit-jdk-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!