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:
- Use JDK 32bit
- 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 😛
Many Thanks ! =)
Come on! this can’t be true!!! :))) Press Back and Next and it works…good job Google! 😛
Thanks for the tip!
In spanish we said … “Maestro” … thanks …
Zukro is right, too strange….
yes this works.. 🙂
gr8
Hahaha didn’t believe it so downloaded and installed just to see it…. It’s true 😉
nice!!
many thx, this still works >> 2012!!!
Thanks mate, worked like a charm 🙂
Thanks. This post helped.
Thanks very much – worked perfectly.
Thanks a lot! I was too lazy to download the zip file too 🙂
Thanks, this worked perfectly!
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.
Great! Many thanks!
Thank you so much for that 🙂
Thanks, worked perfectly!
Thanks much for the post! I had the same problem, and this fixed it right away.
awesome!! xD just a few changes in the registry and the sdk-installation works proper. thank you 🙂
Thank you, copying/pasting to .reg file worked!
Good Man !!!!
Great, great, great!
This is the way I like to solve that kind of problem!!
And it works also without having to reboot! 🙂
Ta muchly, fixed the issue for me too. Shame it’s required /grr
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?
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.
Yep, it’s correct. Oh well, I’ll just do it the other way. Thanks anyway!
Thanks man, worked like a charm.
Thanks mate – Saved me a lot of time on a Windows install. Much appreciated.
Thanks man! 🙂
Thank you so much for this! Worked like a charm. I was using the exact same JDK version as yours. Thank you!
Funcionou show de bola… works fine.
Works Good. Really thank you!!! Thank you.
Thanks very much, solved a nasty headache for me there 🙂
Vielen Dank, super Tipp!
Works like charm, thanks a lot.
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.
Also a big Thank You from me! 🙂
Thank you – it works fine.
helpful thanks a lot! 🙂
Works like a charm!
Merci beaucoup ;D
Ta muchly, worked perfectly – 2 second fix!
Nice one! Worked for me!
Hi there,
great job, it worked for me. thanks a lot
Thanks, saved me 🙂
thanks, the .reg file works great!
holy crap you have no idea how many different versions of java sdk i downloaded to try and get it to work ffs
LOL, I have sluggish internet connection, so I avoid any re-downloading efforts 😛
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.
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
If only all answers on the web were so helpful!
Perfect ! Many thanks !
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.
Awsome, thank you so much for that 🙂
Perfect! Thanks!
Bloody awesome. Thanks for helping make it as simple as it should be..
Works perfectlly, thanks for this tip
worked perfectly! Thanks!!
Thanks mate,
it works!
Thanks your fix was successful 🙂
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?
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.
Thanks, finaly it works!!!
Worked perfectly….Thanks a bunch
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
Hi Gabri, maybe you could try Zukro’s method below, since he is using XP SP3
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!!!!!!!!!!!!!!
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.
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.
Thanks buddy…it worked … no need to struggle with the registry.
zukro you’re a genius!!! How could it have been so easy ????
It worked :p ty
TANK…………IT WORK FINE!!!
Its amazing…Thanks so much…I almost re-download it.. 😀
btw i use windows xp sp3
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)
Cool 😀 simpler workaround :))
Back and next worked a treat. thanks.
lol the zukro way is magic XD
plus one for back/next! how funny 😀
Back button trick is cool! Atleast somebody left the bug there 😉
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
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
Thanks Zukro! Really fantastic!
Yes, this procedure works back and forth just to test now1
Windows 7 64bit. The “Back and then Next” Did indeed work for me.
Go figure?
Same here. Automagic processes \m/
THAT WAS MAGIC INDEED!!
who in their right sense would have gone back and then forward again!!!
Safa.Obrigado.
Thanks!! wonderful
Very nice! Thank you! The “click back” method worked for me!
YES!!! Just click ‘back’ then ‘Next’. Voila!
Thank you!!!!
Very appreciated to Zukro!
Did work from first time!
WindowsXP and JDK1.6.0_24
Back and NEXT works great!! it was too funny to believe..
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???
back and next>>>>>works like a charm
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.
Back and next didn’t work for me. 😦 Maybe they fixed it?
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?
Thanks dude
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
zukro thank you. As you have said, I just pressed ‘back’ button and then pressed again ‘next’ button and it worked.
It’s useful, thx!
The Zukro’s comment work for me 🙂 The install process continue and finish but i don’t test yet if everything works fine.
Great thanks 😉 Works like a charm
WOW!! the back button really did the trick!!.. awsomee… 😀
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..!!!!
THIS IS WHY IPHONE IS #1
LOL 😀
Holy smoke! the next, back and next again worked great 😀 Most excellent, thanks for this post. It has made my day.
The mistery left, why google did that? 😀
hahaha hilarious by google, press back and then press next and it freaking works, lol
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.
Thanks a million, the back-next magic really works!!
The “Update” worked like a magic!! 🙂
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?
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.
The “back” and “next” trick really works!
Many thanks, worked perfectly. This bug should be reported, altough. 🙂
Wow – back and next really fast solves it!!!!! 🙂
Why indeed did Google do that??!?!?!
Simply, Click “Back” then “Next” …. Enjoy your install~
Back and Next worked great!
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 🙂
fucking good men i download 3 times the jdk java platforme but for nothing.good men just good
thanks …dude
Thanks for the back than forward button tip. Have been looking at this for f*cking hours. You da man!!!
wow thanks… i was struggling with it for hours.
OMFG! Pressing back and then going forward fixes it! HAHA
work 🙂
Bingo! Back and then Next did the trick for me 🙂
thank you it works like a charm
no registry needed, just back then next again and …voila!!
Thanks!
HAHAHA Thanks. Press back and then next. It’s like some secret video game trick hack. I love it. Thank you poster
jdk6 update26, android installerr12, back button glitch worked for me 😦 google, fix it.
Whoa, it’s there since r8 :))
AMAZING! THANK YOU!!! The “Back, Next, Back, Next” a few times, and BOOM, Perfect! Yay! Again, thank you!
wow…was battling to get it running for abt 5 hours now…..thanx man…u saved me
lol thanks for the tip. The back button trick worked for me!
Thanks! Pressing the back and next buttons works !
Back and Next worked for me. Thanks
haha why does back then next work???
Clicking back and next worked for me too!
WTF is this Google??!!!
thanks so much, i had followed your step and success!
Hit back and than Next………It works…..awesome…..thnks guys…
gr8 man …
it;s really work …
thanks ..
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.
just had exactly the same problem in a similar environment.
Solved by seeting JAVA_HOME variable
Thanks for Information
-by Dhruval choksi
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.
Thank you MJ that did the trick for me, back-next wasn’t working.
Woah….. it really worked
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
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!
The easy method no longer works “with me anyway”. Windows 8, installer_r20.0.3-windows.
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.
Reblogged this on My Learnings and commented:
For all those facing SDK installation issues. A simple hack and you are sorted.