gpt4 book ai didi

java - IntelliJ Gradle 插件 : The supplied javaHome seems to be invalid

转载 作者:IT老高 更新时间:2023-10-28 11:34:20 28 4
gpt4 key购买 nike

类似于:
- Intellij 14 the supplied javaHome seems to be invalid
- Android Studio - supplied javaHome is not a valid folder

但是,我正在尝试使用设置为 C:\Program Files\Java\jdk1.8.0_40

JAVA_HOME 变量

我不明白为什么 intellij 在其安装目录中寻找 JDK。

在智能:

Executing external task 'bootRun'...
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1\jre\bin\java.exe
External task execution finished 'bootRun'.

C:\>java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

C:>env
...
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_40
...

最佳答案

在我的情况下,上面的答案不起作用。这对我有用:我需要更改 Gradle JVM 以指向实际的 JDK: Image showing IntelliJ Settings window

关于java - IntelliJ Gradle 插件 : The supplied javaHome seems to be invalid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29356796/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com