Exactly, I mistyped in my last message and meant 21 of course as that is what the table says.
Hello Bjorn,
I downgraded to JVM 21.0.5 but trying to compile it reports me this :
JDK - Required to compile Java code
- Version found: 21.0.5
- Version supported: >= 17 <= 20
and running gradlew -version
inside project’s directory, it says:
------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------
Build time: 2024-03-22 15:52:46 UTC
Revision: 650af14d7653aa949fce5e886e685efc9cf97c10
Kotlin: 1.9.22
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21.0.5 (Eclipse Adoptium Temurin-21.0.5+11)
OS: Windows 10 10.0 amd64
so possibilities are two:
- Compatibility Matrix <— those tables aren’t updated correctly
- I have to change something somwhere…
I’d add as information: previously on installing OpenJDK 21
, I used OpenJDK 17
and it compiled but in IntelliJ inside Kotlin’s code in the local library where I put a breakpoint the debugger didn’t stopped at the breakpoint so since it compiled and run the application correctly I thought maybe it was about JVM version which someway wouldn’t let me to debug inside breakpoint… that’s why I tried to install OpenJDK 21
…
Any suggests?
Thanks in advance!
Cheers!
It’s Björn or Bjoern, not Bjorn.
so possibilities are two:
- Compatibility Matrix <— those tables aren’t updated correctly
- I have to change something somwhere…
It is 2. The compatibility matrix is correct. It is not Gradle that is yelling at you.
The matrix tells you since which Gradle version you can use a given Java version as JDK toolchain and since which Gradle version you can use a given Java version to run Gradle itself.
But that error message I have never seen before is not coming from Gradle.
So some plugin you are using restricts the possible versions further, because Gradle-wise 8-21 would be acceptable but something else you use restricts it to 17-20.
So either upgrade that something to a version that supports 21 or further downgrade your Java verison.
Practically I better shall back to OpenJDK 21 and try a npm UPGRADE so node_modules would be upgraded to versions supported by OpenJDK 21 I suppose… right ?
I have no idea where your error message is coming from, so