Installing Android Studio does not indicate a valid JVM installation error

I just downloaded Android Studio. When I tried to start it, I had to change the environment variable and add

JAVA_HOME

and

C: \ Progra ~ 2 \ Java \ jdk1.6.0_22

As soon as I finished this obstacle, now I get one more error:

The environment variable JAVA_HOME (with the value of *C:\Progra~2\Java\jdk1.6.0_22*) does not point to a valid JVM installation. 

I looked at other similar questions and was asked to check the version, so I did the following in CMD:

 C:\Users\Andre>java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing) C:\Users\Andre>javac -version javac 1.6.0_22 

From the results it seems that I have a JVM.

I also tried these paths for JAVA_HOME, I closed and every time I opened a new CMD window

 C:\Program Files (x86)\Java\jre7 C:\Program Files (x86)\Java\jre6 C:\Program Files (x86)\Java\jdk1.6.0_22 C:\Program Files (x86)\Java\jre7\bin C:\Program Files (x86)\Java\jre6\bin C:\Program Files (x86)\Java\jdk1.6.0_22\bin 
+67
java android environment-variables jvm java-home
Jan 14 '14 at 16:45
source share
18 answers

Direct your JAVA_HOME variable to C:\Program Files\Java\jdk1.8.0_xx\ , where "xx" is the update number (make sure that it matches the name of your actual directory). Do not include bin\javaw.exe in the path.

NOTE. You can access the GUI of environment variables from the CLI by entering rundll32 sysdm.cpl,EditEnvironmentVariables . Be sure to enter the JAVA_HOME path variable in System variables , not user variables. If the path variable is in User , Android Studio will not find the path.

+197
Jun 06 '14 at 9:03
source share

It is possible that all the other answers work for people, but for me this way worked:

Leave your JDK path in the JAVA_HOME system variable as indicated here. Do not add bin or other path. It worked for me.

 C:\Program Files\Java\jdk1.8.0_11\ 

Otherwise, I get this error:

 Installing Android Studio, does not point to a valid JVM installation error 
+53
Dec 31 '15 at 19:08
source share

Updated Android studio to version 1.2.1. Even though I was getting the same error. Nothing worked, finally replaced JAVA_HOME with JDK_HOME, and he did the magic.

+28
May 12 '15 at 18:15
source share

2 proposed solutions

  • Update JDK to 1.7

  • Make sure that 32-bit or 64-bit versions are the same on both sides.

+20
Jan 14 '14 at 16:51
source share

I recently work with JDK version 1.8.0_25 on Windows 8.1, and I had the same problem with this. But as Pankaj Jahar said

The real solution for me was pretty simple:

  • Add the JAVA_HOME variable to the system ones, not the user ones.
  • The path entered for this variable was:

     C:\Program Files\Java\jdk1.8.0_25\ 

And it works for me!

+14
Jan 22 '15 at 19:09
source share

In my case, it started after I upgraded to Android Studio 1.2. To fix this, I just had to remove the "\ bin" from my JAVA_HOME variable .

+10
May 04 '15 at 8:22 pm
source share

1) Just remove \ bin from the Java_home environment variable. It worked for me.
2) Also make sure that you are using the correct android and Java studio versions (32/64 bit)

+2
Nov 16 '15 at 4:08
source share

I had to put a backslash at the end of the path and it worked for me.

I used to

C: \ Program Files \ Java \ jdk1.7.0_79

just putting "\" at the end, worked for me. Now the value of the variable JAVA_HOME

C: \ Program Files \ Java \ jdk1.7.0_79 \

+2
Nov 30 '15 at 21:46
source share

I am using 64 bit windows. After struggling with various settings, I performed the following steps:

  • Through Add / Remove Programs I Uninstall All Java
  • Removed JAVA_HOME variable from environment
  • Removed Java folder link from PATH environment variable
  • Download and install 64-bit Java SDK
  • Added the JAVA_HOME variable to the system variables and assigned it the value C: \ Program Files \ Java \ jdk1.8.0_31

In the last step, note that this is the parent folder, not the \ bin subfolder. It started to work.

+1
Feb 19 '15 at 7:39
source share

Do not include the bin folder when executing the path for Java_home.

+1
Feb 28 '15 at 17:58
source share

I had this problem too, and I must have tried 20 different solutions for adding paths before I developed it. Someone mentioned this almost as a note, but that was my problem:

make sure you are using the 64-bit version of java.

+1
Apr 23 '15 at 21:56
source share

My problem was different from any of the above, as far as I can tell. I had a working version 1.1 for Android Studio and upgraded to version 1.2. Then I got a JAVA_HOME error when starting 1.2

The problem was that my JAVA_HOME was set to "C: \ Program Files \ Java \ jdk1.8.0_20" with quotes included. I did not put them there to quote a line, the quotation marks were in the "Variable Value" field. It seems like 1.1 is happy with quotes, but 1.2 is not.

Removing quotes removed the error, and 1.2 now opens perfectly

+1
May 09 '15 at 6:10
source share

Try using the above options. But this job worked for me. my JAVA_HOME looked like this C: \ Program Files \ Java \ jdk1.7.0_21; F: \ Software \ apache- ant -1.9.4-bin \ apache- ant -1.9.4 \ bin Save only the JAVA path in JAVA_HOME Delete any additional path if you gave C: \ Program Files \ Java \ jdk1.7.0_21

+1
May 29 '15 at 19:42
source share

I think that you are doing everything you need, just delete the ";" from the last java_home variable. everything will work well.

+1
Oct. 31 '15 at 10:34
source share

Using c:/Program Files/Java/jre1.8.0_73/ instead of C:/Program Files/Java/jdk1.8.0_73 as a JAVA_HOME variable, I solved the problem for me. Android Studio now starts without problems.

+1
Apr 24 '16 at 12:24
source share

Follow @abs solution

If you still continue to receive an error even after setting the JAVA_HOME variable, copy the studio folder to drive C, and then run studio.exe or studio64.exe depending on your java versio

0
Nov 11 '14 at 7:56
source share

In my case, it was due to an invisible character at the beginning of the path:

enter image description here

0
Sep 01 '15 at 16:30
source share

Most likely, the problem arises due to incompatibility between 32-bit and 64-bit excecutables. Suppose if you installed 32-bit Android Studio by mistake and you will download the 64-bit JDK. In this case, 32-bit Android Studio will not be able to get the 64-bit JDK. That was the problem I encountered. So I followed these simple steps to get it working,

  • A loaded 32-bit JDK (you can also download a 64-bit Android studio if you do not want to change the 64-bit JDK)
  • Right-click MyComputer> Advanced System Settings> under "Advanced"> "Environment Variables"> "System Variables"> Add JAVA_HOME as a key and your jdk (for example: C: \ Program Files (x86) \ Java \ jdk1.7.0 _79) location as value.
  • Save it and launch Android Studio. You are good to go.
0
Apr 19 '16 at 3:39 on
source share



All Articles