Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio error: "Environment variable does not point to a valid JVM installation"

Tags:

When trying to run Android Studio on my computer, I get the following error:

The Environment variable JAVA_HOME (with a value of C:\Program Files(x86)\Java\jdk1.7.0_51\bin) does not point to a valid JVM installation

I tried to remove the \bin extension on my JAVA_HOME environment variable, but it gives me the following error:

No JVM Found. Please install a 64-bit JDK. If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables

  • My System: Windows 8.1 Update 1 x64 (64 bit)
  • Java Directory: C:\Program Files (x86)\Java\jdk1.7.0_51\bin
like image 429
ifconfig Avatar asked Apr 20 '14 17:04

ifconfig


People also ask

What does not point to a valid JVM?

The environment variable JAVA_HOME does not point to a valid JVM installation. JAVA_HOME should be set to the root of your Java installation. or add this value to the system environment variables. See What are PATH and other environment variables, and how can I set or use them? for more information.

Where does Java_home point to?

Set JAVA_HOME: Right click My Computer and select Properties. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1. 6.0_02.


1 Answers

If you start 64bit Android Studio, you have to add JAVA_HOME as

    "C:\Program Files\Java\jdk..." 

If 32bit

    "C:\Program Files(x86)\Java\jdk..." 

and dont put "\bin" end of the path.

like image 114
Muzaffer Avatar answered Sep 17 '22 17:09

Muzaffer