Android SDK r20 - Windows 7 - Java JDK installation not found

Installing the Android SDK does not find the JDK - this is not the same release as this one, and the solution is "backward", then the "next" does not work.

I tried installing different versions of Java and nothing works. I have been trying to fix this for the last 3 days. The solutions I tried DO NOT work:

  • Pressing the back button, then the next button.
  • Adding an environment variable for JAVA_HOME that points to the System32 path and the actual java installation directory.
  • Installing different versions of Java. (Java 6 and Java 7)

The installation file is called installer_r20.0.3-windows and is the current exe, available at http://developer.android.com/sdk/index.html

Error messagejava.exe

+7
source share
3 answers

Ok, looking at your JAVA_HOME path, which is C:\Program Files\Java\jdk1.6.0_34\bin I suggest you change it as C:\Program Files\Java\jdk1.6.0_34\ . There is no need to add the path to the bin folder in the JAVA_HOME path.

+6
source

On my Win7 Ultimate 64 bit / I need a few things

  • Set the SystemEnvironment variable JAVA_HOME = C: \ Program Files \ Java \ jdk1.7.0_07
  • Add the same value to the SystemEnvironment Variable PATH, but be sure to set it to the path system32 PATH = C: / Program Files / Java / jdk1.7.0_07; C: \ Windows \ system32; ....... (... = current value)
  • and most importantly, I guessed. Rename c: \ windows \ system32 \ java.exe → c: \ windows \ system32 \ java.exe.old
  • Reboot the installer (my case = installer_r20.0.3-windows.exe)

Voila!

It can help safely at other times.

+5
source

Setting the JAVA_HOME environment variable in the system variable to C:\Program Files\Java\jdk1.7.0_07\ really solved my problem.

A few comments.

  • No need to specify bin or jre folder name.
  • You will need to cancel and restart the installation of the Android SDK. Previous / Next may not work.
  • I just copied the folder name from the address bar of Windows Explorer. No need to replace \ with / .
+2
source

All Articles