JDK not found on Installing Android SDK

So last night I was installing Android SDK r8 on Windows 7 64bit and using JDK 6 64bit.

The installer gave me this…

But I have installed JDK, so somehow the installer cannot find my JDK path and adding JDK location to my PATH doesn’t solve it.

I’ve googled about it, and some people have this solutions:

  1. Use JDK 32bit
  2. Use Android SDK (.zip) installer

But I don’t want to do those 😀 I have 64bit environment, so I want to use JDK 64bit (mainly because I am too lazy to re-download those)

And then I found this discussion here that tells me to change some registry key, because the SDK installer somehow is looking for 32bit JDK path.

So I export this key

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\]

and apply some changes so it will be imported to

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\]

(basically just find-and-replace

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\

into

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\

)

Below is the new registry file, I save it to .reg extension and Import it to my registry. Voila! my Android SDK r8 now works!

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit]
"CurrentVersion"="1.6"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_23"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6.0_23]

"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_23"

"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Plug-in]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Plug-in\1.6.0_23]

"JavaHome"="C:\\Program Files\\Java\\jre6"

"UseJava2IExplorer"=dword:00000001

"UseNewJavaPlugin"=dword:00000001

"HideSystemTrayIcon"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment]

"Java6FamilyVersion"="1.6.0_23"

"CurrentVersion"="1.6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6]

"JavaHome"="C:\\Program Files\\Java\\jre6"

"RuntimeLib"="C:\\Program Files\\Java\\jre6\\bin\\client\\jvm.dll"

"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6.0_23]

"JavaHome"="C:\\Program Files\\Java\\jre6"

"MicroVersion"="0"

"RuntimeLib"="C:\\Program Files\\Java\\jre6\\bin\\client\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6.0_23\MSI]

"JU"="1"

"OEMUPDATE"=""

"MODE"="C"

"JQS"=""

"FROMVERSION"="NA"

"FROMVERSIONFULL"=""

"KERNEL"=""

"PRODUCTVERSION"="6.0.230"

"INSTALLDIR"="C:\\Program Files\\Java\\jre6\\"

"SYSTRAY"="1"

"EULA"="0"

"IEXPLORER"="1"

"MOZILLA"="0"

"JAVAUPDATE"="1"

"AUTOUPDATECHECK"="1"

"AUTOUPDATEDELAY"=""

"ImageCkSum"="2272295289"

"FullVersion"="1.6.0_23-b05"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start]

"CurrentVersion"="1.6.0_23"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1]

"Home"="C:\\Program Files\\Java\\jre6\\bin"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1_02]

"Home"="C:\\Program Files\\Java\\jre6\\bin"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1_03]

"Home"="C:\\Program Files\\Java\\jre6\\bin"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1_04]

"Home"="C:\\Program Files\\Java\\jre6\\bin"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.2]

"Home"="C:\\Program Files\\Java\\jre6\\bin"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.2.0_01]

"Home"="C:\\Program Files\\Java\\jre6\\bin"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.6.0_23]

"Home"="C:\\Program Files\\Java\\jre6\\bin"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Prefs]

Update:
Zukro notified in the comment box that you can try a faster way, I never tried this method but many notified that it works, no matter how weird it may sound 🙂

I quote Zukro’s comment directly

When there’s a pop up say JDK not found. just press ‘back’ button and then press again ‘next’ button.. look what happened!!!!!!!!!!!!!!

Well, there’s magic in that I presume 😛