Android SDK install: Java SE development Kit (JDK) not found [duplicate]
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 开发者_Go百科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.
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).
- Run regedit.
- Find [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
- 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.
- Back in regedit, click File->Import and select the file from above. Done.
- Try the SDK installer again.
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.
Just press back, then next and it will find it. Android SDK installation doesn't find JDK
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
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.
精彩评论