Skip to main content

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: Tips4allCCNA FINAL EXAM

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. This registry fix worked like a charm on my Windows 7 x64 setup: http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/

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

    ReplyDelete
  9. 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
  10. 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
  11. Try downloading and installing the zipped version rather than the .exe installer.

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

    ReplyDelete
  13. 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
  14. Yeah install the 32 bit version of the Java SE SDK (or any of the combinations). That should help solve your problem.

    ReplyDelete
  15. 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
  16. 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
  17. 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

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex