Android SDK and Java

Posted by Soonts on Stack Overflow See other posts from Stack Overflow or by Soonts
Published on 2011-07-17T12:51:43Z Indexed on 2012/10/26 5:02 UTC
Read the original article Hit count: 129

Filed under:
|

Android SDK Manager complains "WARNING: Java not found in your path".

Instead of using the information from Windows registry, the software tries to search Java in the default installation folders, and fails (I don't install software in program files because I don't like space characters in my paths). Of course I know how to modify the %PATH% environment variable. The question is — which Java does it need?

After installing the latest JDK, I’ve got 4 distinct versions of java.exe file, in the following 4 folders: system32, jre6\bin, jdk1.6.0_26\bin, and jdk1.6.0_26\jre\bin. Size ranges from 145184 to 171808. All of them print version “1.6.0_26” when launched with the “-version” argument. The one in system32 has .exe version “6.0.250.6”, the rest of them is “6.0.260.3”. All 4 files are different (I’ve calculated the MD5 checksums).

Q1. Which folder should I add to %PATH% to make the Android SDK happy?

Q2. Why does Oracle build that many variants of java.exe of the same version for the same platform?

Thanks in advance!

P.S. I'm using Windows 7 SP1 x64 home premium, and downloaded the 64-bit version of JDK, jdk-6u26-windows-x64.exe.

© Stack Overflow or respective owner

Related posts about java

Related posts about android