0

I went to the Oracle site, downloaded and installed Java Platform (JDK) 7 on a Windows 7 64 bit virtual machine. I added the path to the c:\program files\Java\jdk1.7.0\bin to the path environment variable. I even deleted c:\windows\system32\Java.exe as recommended by someone. I was essentially following this: "Android Create" call fails in windows 7 - missing JDK

When I install the ADT it gives me the error JDK could not be found. Download the latest JDK. Why?

Thanks.

Community
  • 1
  • 1
Brian Mains
  • 50,520
  • 35
  • 148
  • 257

5 Answers5

3

this is caused because the Android DK finds java in the c:\windows\system32\ folder before it finds the JDK one.

To resolve this edit your PATH environment variable and put the JDK path before the c:\windows\system32\ path.

adil
  • 31
  • 2
1

Just in the ADT installer , press back when the installer promite for No JDK Found then press next, the installer will find the JDK, for sure this is a common bug

Mohammad Ersan
  • 12,304
  • 8
  • 54
  • 77
0

adil's answer is the one which finally worked for me (although I had added the jdk\bin to the path and created\set the JAVA_HOME to the same); moving the jdk\din directory before the win\sys32 in the PATH finally allowed me to install the android sdk on win7/64bit

MacD
  • 783
  • 7
  • 23
0

Does that happen when you open eclipse?

I'm thinking in two possible problems. Here is one possible solution: Eclipse - no Java (JRE) / (JDK) ... no virtual machine

If you already got this, go to Window -> Android SDK and AVD preferences

The first "preference" should ask you your Android SDK folder. you need to set this correctly.

Community
  • 1
  • 1
Pedro Loureiro
  • 11,436
  • 2
  • 31
  • 37
0

Your JDK installation is not proper.

Reinstall JDK. It should be working fine.

I also had this problem once. I have done the above to resolve this issue.

You should not delete C:\Windows\System32 folder for this issue, It might lead to OS problems.

MduSenthil
  • 2,019
  • 3
  • 18
  • 39