The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: D:\...

【声明:】本文是作者(蘑菇v5)原创,版权归作者 蘑菇v5所有,侵权必究。本文首发在。如若转发,请注明作者和来源地址!未经授权,严禁私自转载!

前言:

我的JAVA_HOME的变量C:\Program Files\Java\jdk1.8.0_144,但是intellij在安装目录找不到JDK,报以下错误:

错误

解决办法:

更改Gradle JVM指向实际的JDK

具体如下:

我的java_home环境变量:

The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: D:\..._第1张图片
环境变量

修改intellij IDEAGradle JVM 路径,和上面一致,即可:

The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: D:\..._第2张图片
修改路径

你可能感兴趣的:(The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: D:\...)