2

First of all, I know that this question has been asked before maybe more than once, like this one for instance Android Studio - No JVM Installation found but i couldn't know the path that i have to refered to.

i already installed jdk-8u31-windows-x64 and i am working on windows 7 64 bit, when i open Android Studio, i got message:

enter image description here

it seems obvious that i should add a JAVA_HOME system variable, but what is the value of that variable?

after installing jdk-8u31-windows-x64, i found this folder on my computer C:\Program Files (x86)\Java\jre1.8.0_31, should I refered to it? or to the bin inside it? or should I install other stuff?

Note 1:

when I type java -version on my cmd, I got this:

java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

Note 2:

Yesterday I formatted my laptop and installed the latest version of java from the official website of java

Community
  • 1
  • 1
Marco Dinatsoli
  • 10,322
  • 37
  • 139
  • 253

1 Answers1

2

The JAVA_HOME should contain the path of the 64-bit JDK.

C:\Program Files (x86)\Java\jre1.8.0_31 is the path of a JRE. Normally the JDK directory should be something like jdk1.8.0_31 in your case, and the JAVA_HOME would store the absolute path of this directory, without the bin directory. Try searching for that directory under C:/Program Files (C:/Program Files(x86) is usually for 32-bit installations).

It would be better to also install JDKs in a path that does not have space.

M A
  • 71,713
  • 13
  • 134
  • 174