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

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.