VSCode and RedHat Java: wrong JDK for gradle tasks
Dear community,
I've installed OpenJDK 21. I have configured JAVA_HOME and JDK_HOME accordingly, setup the JDK Runtime under Project Settings (JavaSE-21, which correctly points to the Eclipse Adoptium's jdk 21 folder). The
Running gradlew from the shell, it works correctly (i.e.
Thanks for any help
Gradle's output:
I've installed OpenJDK 21. I have configured JAVA_HOME and JDK_HOME accordingly, setup the JDK Runtime under Project Settings (JavaSE-21, which correctly points to the Eclipse Adoptium's jdk 21 folder). The
build.gradle file is configured to run with Java version 21 (see following config). I have no clue why, when I start the Gradle tasks via the Gradle integration tab, it uses the java.exe included in the redhat's extension (java v. 17).Running gradlew from the shell, it works correctly (i.e.
.\gradlew.bat init)Thanks for any help
Gradle's output: