Andrei Kulik
Andrei Kulik

Reputation: 1584

Gradle JVM version doesn't match the used JDK version

In the screenshot below, you can see what I am using the 11.0.11 JDK version but my Gradle uses the 1.8.0_282 JVM version. And it's not a problem because for set the Java version in a project using Gradle Toolchain.

enter image description here

I'm not sure but it looks strange. Is it worth worrying about and can I specify a specific JVM version (11)?

Upvotes: 0

Views: 3119

Answers (1)

Rene Groeschke
Rene Groeschke

Reputation: 28653

It seems you have a java executable on your PATH that doesn't match up with a configured JAVA_HOME environment. Gradle uses the JAVA_HOME to detect the java installation to use.

Upvotes: 2

Related Questions