teynon
teynon

Reputation: 8288

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

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:

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 Message java.exe

Upvotes: 7

Views: 11652

Answers (3)

Eric F.
Eric F.

Reputation: 329

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

Upvotes: 5

daniele
daniele

Reputation: 177

Setting JAVA_HOME environment variable in System variable to C:\Program Files\Java\jdk1.7.0_07\ did solve my problem.

A couple of points to note.

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

Upvotes: 2

Lucifer
Lucifer

Reputation: 29632

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.

Upvotes: 6

Related Questions