Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - JAVA_HOME doesn't point to a valid JVM installation

Tags:

java

android

jvm

Having trouble firing up android studio. Get the following message: The environment variable JAVA_HOME (with the value of ?C:\Program Files\Java\jdk1.8.0_31) does not point to a valid JVM installation. The problem is that as far as I can tell, the environment variable I set up IS pointing to a valid install.

I've tried everything from renaming it to JDK_HOME, to pointing it to all the sub directories in the jdk folder, to uninstalling and reinstalling java and android studio about 3 time. I have triple checked that I have 64 bit JAVA installed (and that my computer is 64 bit). Pretty much at the end of my rope here. Help would be appreciated big time.

Here's a screen cap of my windows, you might spot something obvious I haven't:

a screen cap of my windows

like image 576
oneshotfinch Avatar asked Sep 05 '25 03:09

oneshotfinch


1 Answers

You can try this Android Studio error: "Environment variable does not point to a valid JVM instalation"

this works for me. 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 151
chaitanya Avatar answered Sep 07 '25 23:09

chaitanya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!