javavscode
javavscode copied to clipboard
Gradle Version Number / VersionNumber error message
Dear team,
I'm on Java 25 and Gradle 9.1.0 and since the update I'm getting the following error message when starting the Java project.
Project emerald:
org/gradle/util/VersionNumber
org.gradle.util.VersionNumber:
org/gradle/util/VersionNumber
org.gradle.util.VersionNumber
This didn't happen before and was working fine with Java 24.
As you can see in the following screenshots VSCode tells me that some packages are missing although they're not missing and compilation works fine.
I can even click on those packages, e.g. RestController, and see the source code.
Here is my Java version
openjdk 25 2025-09-16 LTS
OpenJDK Runtime Environment (build 25+37-LTS)
OpenJDK 64-Bit Server VM (build 25+37-LTS, mixed mode, sharing)
And my Gradle version
------------------------------------------------------------
Gradle 9.1.0
------------------------------------------------------------
Build time: 2025-09-18 13:05:56 UTC
Revision: e45a8dbf2470c2e2474ccc25be9f49331406a07e
Kotlin: 2.2.0
Groovy: 4.0.28
Ant: Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM: 25 (BellSoft 25+37-LTS)
Daemon JVM: /Users/zemirco/.sdkman/candidates/java/25-librca (no JDK specified, using current Java home)
OS: Mac OS X 15.6.1 aarch64
I'm using the Java plugin version 24.1.2.
Thank you, you're awesome 👏
Thank you @zemirco for using the extension and reporting this issue.
Gradle 9 is supported better in an upcoming version of the extension.
Presently, you may use a Gradle 8.x version, and, with the extension settings of jdk.project.jdkhome value set to JDK-25 home path and, jdk.jdkhome value set to a jdk <= 24, say JDK-21 home.
Please let us know if this resolves the problem for the time being. Thanks.