Thursday, May 24, 2012

Android SDK installation doesn"t find JDK


I'm trying to install the Android SDK on my Windows 7 x64 System. jdk-6u23-windows-x64.exe is installed, but the Android SDK setup refuses to proceed, because it doesn't find the JDK installation.



Is this a known issue? And is there a solution?



SDK Error


Source: Tips4all

16 comments:

  1. Press Back when you get the notification and then Next. This time it will find the JDK.

    ReplyDelete
  2. I found the solution and it's beautifully stupid. I found Android SDK cannot detect JDK.

    Press the Back button on the SDK error screen that tells you that the EXE couldn't detect the JDK. Then press Next.

    Who would have thought that would happen?

    ReplyDelete
  3. I downloaded the .zip archive instead and ran SDK Manager.exe, and it worked like a charm. You had the same issue with the .exe otherwise.

    ReplyDelete
  4. It seems like it doesn't work without 32 bit JDK.
    Just install it and be happy...

    ReplyDelete
  5. All you need are the following two registry entries. It appears as if whoever posted the other registry stuff basically just copied all the keys from HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft into HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft which obviously isn't an ideal solution because most of the keys aren't needed.

    [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"

    ReplyDelete
  6. After reading a couple of blog posts, it does seem to be even an easier fix by clicking BACK when the installer says couldn't find the JDK, and then simply click NEXT again.. and magically it finds the JDK... no registry messing around or re-downloading etc..

    ReplyDelete
  7. Press Report error and OK. Next will be enabled.

    ReplyDelete
  8. Install the x64 JDK, and try the back-next option first, and then try setting JAVA_PATH like the error message says, but if that doesn't work for you either, then try this:

    Do as it says, set JAVA_PATH in your environment variables, but in the path use forward slashes instead of backslashes.

    Seriously.

    For me it failed when JAVA_PATH was C:\Program Files\Java\jdk1.6.0_31 but worked fine when it was C:/Program Files/Java/jdk1.6.0_31 - drove me nuts!

    ReplyDelete
  9. Warning: As a commenter mentioned, dont try this on a Windows7!!!! I tested it with WinXP-64.

    As the posted Solution does NOT work for all (including me, myself, and i), i want to leave a note for those seeking for another way (without registry hacking etcpp) to solve this on on a Win64. Just add PATH (capital letters!!) to your environment Variables and set the Value to your JDK-Path.

    I added JDK to the existing "Path" wich did not work, like it didnt with JAVA_HOME or the "Back"-Solution. Adding it to "PATH" finally did the trick.

    I hope for some this might be helpful

    ReplyDelete
  10. Try downloading and installing the zipped version rather than the .exe installer.

    ReplyDelete
  11. I had the same problem and solved it by installing the x86 version of the JDK (on Windows XP x64).

    ReplyDelete
  12. None of the solutions here worked for the 64bit version.

    Putting the JDK path before the c:\windows\system32\ path solves the problem, because the 32bit java.exe is found before the JDK one.

    ReplyDelete
  13. Yeah install the 32 bit version of the Java SE SDK (or any of the combinations). That should help solve your problem.

    ReplyDelete
  14. You will have to download the 32-bit SDK version because Win7 64-bit is not supported only Windows Server 2003 has a supported 64-bit version. During the download of Java SDK pick "Windows" as your platform and not "Windowsx64".
    Once I did this android SDK installed like a charm. Hope this helps.

    ReplyDelete
  15. Adding JAVA_HOME environment variable (under System Variables) did the trick for me.
    Clicking "Back" and "Next" buttons didn't work.

    Windows 7 Professional x64, JDK 1.7.0_04 (64 bit, I don't have x86 version installed)

    I think that installer tries to find JDK in specific (1.6?) version and if it can't find it, checks JAVA_HOME which was not set in my case. I have another computer (the same system but with JDK 1.6 x64) and it worked without JAVA_HOME variable.

    ReplyDelete
  16. i had the same problem, tried all the solutions but nothing worked. The problem is with Windows 7 installed is 64 bit and all the softwares that you are installing should be 32 bit.
    Android SDK itself is 32 bit and it identifies only 32 bit JDK. So install following softwares.


    JDK (32 bit)
    Android SDK (while installing SDK, make sure install it in directory other than "C:\Program Files (x86)", more probably in other drive or in the directory where Eclipse is extracted)
    Eclipse (32 bit) and finally ADT.


    i tried it and all works fine.

    ReplyDelete