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
java android environment-variables jvm java-home
LegionDev Jan 14 '14 at 16:45 2014-01-14 16:45
source share