Android

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 😛

180 thoughts on “JDK not found on Installing Android SDK

    1. Come on! this can’t be true!!! :))) Press Back and Next and it works…good job Google! 😛
      Thanks for the tip!

  1. Thanks so much I just copied your example into a .reg, imported and it worked perfectly. People like you make the internet a worthwhile place.

  2. Hi, I tried this but the installer still does not find my 64-bit JDK installation.
    I have saved that text as a .reg and run it, it told me the values were added to the registry. I still get the same message from the installer, even after a restart. Any ideas?

    1. Hi, Not sure about it Alex, have you check what is the value of
      this key [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\] and compare it to your JDK installation path? Since this registry file only applies to standard JDK installation path

      If it does not work, you should try the zip SDK instalation then.

  3. Thank you!!! Your comprehensive registry file example worked for me whereas the example provided on StackOverflow did not work.

    My exported registry settings after installeing the JDK were a much more limited set like the ones shown on StackOverflow. I feel grateful for however you managed to get such a comprehensive set of registry settings. They made the difference.

  4. holy crap you have no idea how many different versions of java sdk i downloaded to try and get it to work ffs

  5. Thank you. I’m on Vista 64. Pasted your text into notepad, searched and replaced C: to F:, changed client to server (no client folder in my jre/bin/). Imported with regedit and voila!, happy ending to miserable morning.

  6. HOLY CRAP YOU TOTALLY ROCK!

    I’ve been face-palming all day trying to get around this problem and I’ve been thru at least about 10 other forums with various suggestions and nothing worked.

    Found this thread…copied and imported the regfile changes…I’m Golden!

    Beers!
    Janie

  7. Just in case anyone is like me and doesn’t see the details, my first attempt didn’t work because I exported the HKEY_CURRENT_USER/javasoft key and not the HKEY_LOCAL_MACHINE/javasoft key. Everything will seem to go well, but of course it won’t work.

  8. When exporting the javasoft key, is there a naming convention to obey or can you name them anything(.reg)?

    After i had imported the edited .reg file i exported the javasoft key again and noticed that it did not contain the changes i had made (adding \Wow6432Node), is that normal?

    1. Well, it’s recomended to use (.reg) and then import it into the registry.
      Wow6432Node should be there by default if your Windows 7 OS is a 64bit one, and the changes should be applied after you import the file.

  9. i have the same problem with different environment
    i’m using WinXP SP3 32bit, JDK6u24 32bit
    but still i got the problem ( ‘-‘)
    can some one help

  10. hey guys!!! good thing that you can found the way to install it.

    by my friend found a better way.

    when there’s a pop up say JDK not found. just press ‘back’ button and then press again ‘next’ button..

    look what happened!!!!!!!!!!!!!!

    1. Zukro, I want to give you two big thumbs up. I have Vista 32bit and installed the 32 JDK but it was telling me not found.

      Your method works swell. To the internet, ALL READ THIS.

    2. I had the same issue on my Windows 7 with JDK6u24 64bit installed. When I ran Android SDK installer (installer_r10-windows.exe), it complained that ‘JDK is not found’ (even though I had already updated PATH). After some googling,I found couple of suggestions on updating the registry and zukro’s suggestion. Being the easiest option, I decided to follow zukro’s option first. Clicked back when Android SDK installer complained about JDK and then click next. wow!! it detected JDK.
      I would recommend to try this simple option first. It worked for me. should work for others also. If it didn’t, you can always follow the registry approach.

  11. Zukro is right, did exactly the same (windows 7) and it worked: Just press back and next again.

    (I had tried 20 times already by closing the setup and trying again)

  12. that is just brilliant. Biggest software product company in the world (or thereabouts) and we have a ridiculaous fix to a problem that should never occur!

    thanks for the tip, I could have wasted hours because of poor software testing of the installer!

    Tony

    1. Lol, yeap a ridiculous trick that I have to try few times just to believe that it works 😀

      Probably Google just want to show how “automagic” their installer are

  13. Back and Next. Whaha Fun XD it works.

    I was thinkin like: wow that are a lot of keys in registry?! but okay this works great. just a simple bug.

    How the hell did anyone discover this thing???

  14. I also encountered this problem on windows7 32bit OS when installing the SDK which is recommend by the websit.
    I google and baidu(China search engine) it.
    There is a easy method to solve this problem.
    After clicking the next btn, you will see the next page’s next btn disabled. You just need to click the back btn and than try to click the next but, the installing program will can detect the OS has installed the JDK.

    1. A fix that didn’t resolve the main problem then 😀

      I install the fresh downloaded SDK about 2 weeks ago and the back-next trick kind of still working (Win 7 64bit)

      Does the registry trick still applies to you?

  15. Ok mine says it finds jdk 1.6 but it still doesn’t work (even with the back n’ next trick).
    I even tried back and next on every screen.

    What am i doing wrong? Been trying for ages guys, help me.
    (Win7 64bit)
    Thanks

  16. zukro thank you. As you have said, I just pressed ‘back’ button and then pressed again ‘next’ button and it worked.

  17. The Zukro’s comment work for me 🙂 The install process continue and finish but i don’t test yet if everything works fine.

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

    THANK YOUUU..!!!!

  19. Holy smoke! the next, back and next again worked great 😀 Most excellent, thanks for this post. It has made my day.

  20. Thanks that was a great tip.
    I would’ve thought that google had fixed it by now. Oh well, good job I came across this article.

    Cheers guys.

  21. Brilliant, did you notice that the android website doesn’t have anyplace to complain or request assistance?

    So what is Googles problem, this issue has only been around for 7 months now.

    Are the rest of the SDK tools going to be this buggy too?

  22. I also faced the same issue, Noting to do just presh back button and once again Next it will find the JDK and installation success.

  23. Amazing post! Before I readit doing “back” and “next” didn’t work (silly, but I tried) after finding this post, Idid it again – and everything is OK 🙂

  24. Thanks for the back than forward button tip. Have been looking at this for f*cking hours. You da man!!!

  25. Hey,

    I’m using windows 7 64 bit and installed the java 1.7.0_03 verssion of JRE and JDK and had the same problem.

    I tried the “Back, Next” issue but it didn’t work.
    I solve the problem by reinstalling the JRE and the JDK as an administrator
    by right clicking on the EXE files an choose “Run as administrator”.
    after that the Android SDK installation found it with no problems.

  26. I just set a Environment Variable named JAVA_HOME with the value: C:\Program Files\Java\jdk1.7.0_05\
    The problem is solved and sdk works properly.

  27. I had a similar experience on Windows 8 now. I had to install the 32 bit Java, then copy the “java.exe” to the C:\windows\SysWow64 node. THEN android was able to install. Afterward I installed the 64 bit java again and everything was fin.e

  28. Pressing “Back” and the “Next” DID NOT work for me…at all…and the fact that it has worked for some of you infuriates me. I want to get this stupid Twitter, Diner Dash, Doodle Jump garbage off of my phone!!! It’s eating up space with every update!

  29. An outstanding share! I have just forwarded this onto a coworker who was conducting a little
    research on this. And he in fact ordered me lunch simply because
    I stumbled upon it for him… lol. So let me reword this.

    … Thank YOU for the meal!! But yeah, thanks for spending some time
    to discuss this topic here on your blog.

Leave a reply to sky Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.