When I invoke the Gradle wrapper in my project, I get this error:
FAILURE: Build failed with an exception.
* What went wrong:
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Eclipse Adoptium\jdk-17.0.11.9-hotspot\bin\java.exe
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
However, the JAVA_HOME variable is set correctly.
$ echo $JAVA_HOME
C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot
Prior to this I upgraded JDK (Eclipse Temurin) from version jdk-17.0.11.9-hotspot to jdk-17.0.12.7-hotspot, updated JAVA_HOME and rebooted. But Gradle still somehow finds the old JDK, I’m not even sure how…