2

I am installing android studio into my 32 bit windows. It was installed when i am going to launch this application it was giving error of the java_home environment variable does not point to a valid jvm installation

I have checked the version installed on PC.screenshot of java version and path where it was installed on my PC

My Android Studio Folder which was build doesn't created JRE Folder.Path where Android Studio has setup .

Cœur
  • 37,241
  • 25
  • 195
  • 267
Rounak Lahoti
  • 138
  • 1
  • 12
  • It was looking for a C:\Program Files\Android\Android Studio\jre\jre in the error, but this root directory is not build ed during installation. – Rounak Lahoti Mar 10 '16 at 10:02
  • Possible duplicate of [Android Studio error: "Environment variable does not point to a valid JVM instalation"](http://stackoverflow.com/questions/23185358/android-studio-error-environment-variable-does-not-point-to-a-valid-jvm-instal) – Cœur Apr 16 '17 at 16:09

5 Answers5

3

Just do this:

Select Start menu > Computer > System Properties > Advanced System Properties.

Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_79.

Vucko
  • 7,371
  • 2
  • 27
  • 45
1

Right click on Computer->Properties -> Advanced system settings -> Advanced Tab -> Environmental variables button click -> Add JAVA_HOME variable to user variables section like bellow screen grab.

enter image description here

Then open up the path variable under the system variables. Edit it and add JAVA_HOME at he end of the line like the bellow image.

enter image description here

Kanishka
  • 267
  • 4
  • 21
0

if you install the jdk1.7.0_79 and add environment variable path to add the path C:\Program Files\Java\jdk1.7.0_79

Kalpesh Kikani
  • 587
  • 6
  • 18
0

The mistake which i have done is that i am giving JAVA_HOME variable to System Variables not to User Variable.

so, we have to give a variable to a User Variable in environment variable.

second thing is that the value should only has a path of a jdk not other paths are added in that value.In my case it was also storing other path also don't know why??but now working.

Rounak Lahoti
  • 138
  • 1
  • 12
0

I had a problem with the response, my operating system is 64bits, I tried to open the android-studio 32bits, I try to install a 32bits version of java, but got the response, I went to a bin folder Of Android studio, and opened the 64bits executable, worked correctly, with my java_home pointing to 64bits logically.

enter image description here

Then the confirmation looks like this:

Environment variable:

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_xxx

Opening android studio:

studio64.exe
Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
Jerfeson Guerreiro
  • 745
  • 1
  • 10
  • 19