Skip to content

Build Failed - '_BuildScript_' Unsupported class file major version 65 #261

@chaehwanli

Description

@chaehwanli

I got build failed with "./gradlew build"

A problem occurred configuring root project 'gradle-dependency-graph-generator-plugin'.
> Could not open cp_proj generic class cache for build file 'C:\GitHubRepo\gradle-dependency-graph\gradle-dependency-graph-generator-plugin\build.gradle' (C:\Users\chaeh\.gradle\caches\7.6.4\scripts\9l1grthz6xnhj84icq5aqh6ud).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65  

and I'm using jdk 21

PS >java -version      
openjdk version "21.0.6" 2025-01-21 LTS
OpenJDK Runtime Environment Temurin-21.0.6+7 (build 21.0.6+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.6+7 (build 21.0.6+7-LTS, mixed mode, sharing)

is there any specific java version to build?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions