This message was deleted.
# community-support
s
This message was deleted.
u
Copy code
$ ./gradlew clean build

FAILURE: Build failed with an exception.

* Where:
Initialization script '/Users/ummalhotra/.gradle/init.gradle'

* What went wrong:
Could not compile initialization script '/Users/ummalhotra/.gradle/init.gradle'.
> startup failed:
  General error during conversion: Unsupported class file major version 64

  java.lang.IllegalArgumentException: Unsupported class file major version 64
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
        at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(
java --version openjdk 20 2023-03-21 OpenJDK Runtime Environment (build 20+36-2344) OpenJDK 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)
v
u
gradle --version Welcome to Gradle 8.1! Here are the highlights of this release: - Stable configuration cache - Experimental Kotlin DSL assignment syntax - Building with Java 20
v
Exactly, "Building" (using the toolchains feature)
Not "Running"
u
then which java version should i use with this gradle?
v
That I answered already with the first answer 😉
u
Ok, got it. Java 20 and later versions are not yet supported.
👌 1
But actually I tried with open jdk Java 17 as well, But I had got a similar problem with that also. I will try again and check if java 17 works Thanks for the help. @Vampire
v
If you got a problem with 17, then please tell which exactly, details are important 🙂
u
I will share in some time.
👌 1