原创, 安卓,

解决The environment variable JAVA_HOME does not point to a valid JVM installationSolution of The environment variable JAVA_HOME does not point to a valid JVM installation

安装 Android Studio 和 JDK 之后, 打开 android studio 提示: The environment variable JAVA_HOME (with the values of D:\Program Files\Java\jdk1.8.0_05;) does not point to a valid JVM installation.

Android studio start error with JAVA_HOME
JAVA_HOME 配置不正确,导致Android Studio 打不开

需要查看以下信息是否正确配置:

JAVA_HOME :需要指向正确的JDK位置, 如 D:\Program Files\Java\jdk1.8.0_05, 需要注意的是 不要再路径后面带“;”,

JAVA_HOME 环境变量配置截图
JAVA_HOME 环境变量配置截图

新增或编辑 CLASSPATH 配置为 .;%JAVA_HOME%\lib;

CLASSPATH 配置路径
CLASSPATH 配置路径

After installed Android Studio and JDK, open android studio ,it shows The environment variable JAVA_HOME (with the values of D:\Program Files\Java\jdk1.8.0_05;) does not point to a valid JVM installation.

Android studio start error with JAVA_HOME
JAVA_HOME error config, can not open Android Studio

Check these configs:

JAVA_HOME: Config it to the JDK location, example D:\Program Files\Java\jdk1.8.0_05,Note: it should be end without “;“.

JAVA_HOME config
JAVA_HOME Config

Edit or add CLASSPATH Config it to .;%JAVA_HOME%\lib;

CLASSPATH Config path
CLASSPATHConfig path

(27244)

Related Post