58

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.

Cœur
  • 32,421
  • 21
  • 173
  • 232
tatmanblue
  • 1,137
  • 1
  • 13
  • 29

6 Answers6

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.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
dge
  • 1,287
  • 1
  • 8
  • 2
10

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.
Joel Skrepnek
  • 1,621
  • 1
  • 13
  • 20
8

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.

Sathyajith Bhat
  • 19,739
  • 21
  • 90
  • 126
Raiden
  • 81
  • 1
7

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

Community
  • 1
  • 1
gaj
  • 71
  • 1
  • 1
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

CoolBeans
  • 20,016
  • 10
  • 81
  • 98
Dmitriy
  • 61
  • 1
  • 1
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.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
tatmanblue
  • 1,137
  • 1
  • 13
  • 29