Installing SDK (r18) and JDK on a Win7 64bit PC (Java fix)

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,569
2,797
113
Visit site
Just got a new laptop, and while setting it all up (fun times!) I ran into an issue that it looks like a lot of folks are having -- the latest version of the Android SDK is busted when looking for a 64bit Java installation on Win7 64bit. When you try it, it tells you Java can't be found, and you should install it or edit the Java_Home system variable.

Here's a much easier fix.
Install the latest version of the JDK
Download the zip version of the SDK for Windows (not the installer)
Unzip it wherever you like
replace the sdk\tools\lib\find_java.bat file with the attached file.
Run the SDK setup as normal :)

There's a bug in the r18 find_java.bat file, which causes it to look in the wrong location for java.exe and javaw.exe on 64bit Windows. I just attached the version from r16, which doesn't have the bug :)
 
  • Like
Reactions: caretaker007

Trending Posts

Forum statistics

Threads
943,177
Messages
6,917,647
Members
3,158,862
Latest member
danishpeer