Qadir Hussain
Qadir Hussain

Reputation: 8856

Android Studio not detecting my installed jdk

I'm getting this while installing the Android studio.

enter image description here

I have installed the latest JDK7 on my system, and also set path in environment variables.

Upvotes: 2

Views: 9170

Answers (2)

UDAYVEER
UDAYVEER

Reputation: 11

The simplest way is to go to windows/system32/ and find java. Then just change the name java to java.exe for that file.

Upvotes: 1

Divers
Divers

Reputation: 9569

As you can see on your screenshort, you should set JAVA_HOME environment varible.

How to do that (Windows):

  1. Right-click the My Computer icon on your desktop and select Properties.
  2. Click the Advanced tab. Click the Environment Variables button. Under System Variables, click New.
  3. Enter the variable name as JAVA_HOME.
  4. Enter the variable value as the installation path for the Java Development Kit.
  5. Click OK.
  6. Click Apply Changes.

Upvotes: 2

Related Questions