Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK r20 - Windows 7 - Install Java JDK Not Found

Tags:

java

android

Android SDK installation doesn't find JDK is not the same release as this, and the solution "back" then "next" doesn't work.

I have tried installing various versions of Java and nothing seems to be working. I've been trying to get this installed for the last 3 days. Solutions I have tried that do NOT work:

  • Pushing the back button then the next button.
  • Adding an Environment Variable for JAVA_HOME that points to the System32 path and the actual java install directory.
  • Installing various versions of Java. (Java 6 and Java 7)

The install 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

like image 439
teynon Avatar asked Aug 21 '12 03:08

teynon


2 Answers

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

like image 189
Lucifer Avatar answered Sep 23 '22 05:09

Lucifer


On my Win7 Ultimate 64 bits/ i need multiple things

  1. Set SystemEnvironment Variable JAVA_HOME = C:\Program Files\Java\jdk1.7.0_07
  2. Add the same value to SystemEnvironment Variable PATH, but make sure to put it before system32 path PATH = C:/Program Files/Java/jdk1.7.0_07;C:\Windows\system32; ....... (... = current value)
  3. and most important , i guessed. Rename c:\windows\system32\java.exe -> c:\windows\system32\java.exe.old
  4. Restart the installer (my case = installer_r20.0.3-windows.exe )

Voila!

This might help safe other's time

like image 37
Eric F. Avatar answered Sep 20 '22 05:09

Eric F.