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

AndroidSdkInstallation

Android Problem Overview


> 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.

Android Solutions


Solution 1 - Android

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.

Solution 2 - Android

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.

Solution 3 - Android

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.

Solution 4 - Android

Solution 5 - Android

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

Solution 6 - Android

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiontatmanblueView Question on Stackoverflow
Solution 1 - AndroiddgeView Answer on Stackoverflow
Solution 2 - AndroidJoel SkrepnekView Answer on Stackoverflow
Solution 3 - AndroidRaidenView Answer on Stackoverflow
Solution 4 - AndroidgajView Answer on Stackoverflow
Solution 5 - AndroidDmitriyView Answer on Stackoverflow
Solution 6 - AndroidtatmanblueView Answer on Stackoverflow