Saturday, February 26, 2011

Android SDK cannot detect JDK

Normally I develop Android on Linux machine, and just tried to install the new version of Android SDK on my Windows 7 machine today. I download the exe version of Android SDK, installer_r10-windows.exe. And run it, it's complained by Android SDK Tools Setup that Java SE Development Kit not found. No matter how I config my Windows 7 and JDK!!!

Android SDK cannot detect JDK

Finally I found out the solution:
- Press Back button on the error page
- Press Next again.
- OK !!!

35 comments:

anoop said...

Thank you sir!

Jerry said...

After searching for an hour I found your post and it worked for me on both my Win7 & WinXP boxes.

Thanks man!

herrin said...

Yeah, this worked, thanks!

Tolik said...

Thanks

anvilrocks said...

Works like a charm. Thanks a million.

Tien Dep Trai said...

hi friend, thanks for your solution. I met this problem and it wastes me hours to solve

PAPs said...

There is also problem with 64bit JDK - doesn't work with ADK, you must have 32bit JDK (same error is displayed).

J.K.N.D. said...

Wasted so many hours because of this! This worked well for me! Thanks loads!!!

MBahl said...

AWESOME . Simply AWESOME..

jmchung said...

thank you
this work

TungH2 said...

thanks man, so amazing :)

TungH2 said...

thanks man, so amazing.

Punit Raizada said...

AWESOME POST

Omey said...

How simple!

Cleiton Mendes said...

unbelievable!!!! i worked here for almost 2 hours to solve it, and that's only it ??? ¬¬ thanks guy, so thanks... :)

Jeff Berk said...

It worsk very smoothly.. Thanks for sharing.

Blogger said...

Thanks a lot!!

prithvi said...

Thanks so much dude....this saved my time...

s@kur@_Ch@n..haiyahh.. said...

i spent many hours to find the solution...anwy.tq so much.!:)

Davie Lang said...

Thanks, works for me.

Linkan P said...

hi, I must say thanks to you. I spent about week to figure out this. Great full to you..

Nisomash said...

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.

Emiliano Mancini said...

Simply copy java.exe and javaw.exe from C:\Windows\System32 to C:\Windows\SysWOW64

Ninja said...

Thanks, Emiliano. Copied to SysWOW64 and installing ok now.

Alice said...

Copying to SysWOW64 solved the problem. Thanks!

Lennart said...

Can also create symbolic link if you don't want to copy the files. (requires administrator privileges):
mklink C:\Windows\SysWOW64\java.exe C:\Windows\System32\java.exe
mklink C:\Windows\SysWOW64\javaw.exe C:\Windows\System32\javaw.exe

Swaroop Kumar Tata said...

Thanks...Actually error message is misleading. Installer was looking in Syswow64 folder. Just create symlinks as said in earlier comment by lennart.

CDemir said...
This comment has been removed by the author.
CDemir said...

Use forward slashes instead of backslashes in the JAVA_HOME variable and dont include bin as following

C:/Program Files/Java/jdk1.7.0_06/

Johnson Omotayo said...

Emiliano! THANKS your tip worked

Mast Navoday said...

update the evnironment variable path from "C:\Program Files\Java\jdk1.7.0_09" to "C:\\Program Files\\Java\\jdk1.7.0_09\\bin"

Jon said...

Copying to java.exe and javaw.exe from C:\Windows\System32 to C:\Windows\SysWOW64 worked for me on Win7 64 Ultimate. Problem solved!

Anonymous said...

OK!, copying java.exe and javaw.exe to SysWOW64

Thanks ninja!!

Anonymous said...

OP's idea didnt help. Copy files to sysWOW64 did the trick :D

KarSho said...

Thanks bro. It's saved my time...