Android SDK and Java
<p>Android SDK Manager complains "WARNING: Java not found in your path".</p>

<p>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? </p>

<p>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).</p>

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

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

<p>Thanks in advance!</p>

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