Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails with JDK 21 #125

Open
defaultbranch opened this issue Dec 26, 2023 · 0 comments
Open

build fails with JDK 21 #125

defaultbranch opened this issue Dec 26, 2023 · 0 comments

Comments

@defaultbranch
Copy link

Expected Behavior

When cloning the repository and running ./gradlew --console plain installDist (as in the project README.md), the project should build.

Actual Behavior

After gradlew downloaded gradle-7.4.2-all.zip, the build failed:

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/cfuchs/projects/rsocket-cli/settings.gradle'

* What went wrong:
Could not compile settings file '/home/cfuchs/projects/rsocket-cli/settings.gradle'.
> startup failed:
  General error during conversion: Unsupported class file major version 65
  
  java.lang.IllegalArgumentException: Unsupported class file major version 65

Steps to Reproduce

In an environment where javac -version reports version 21, run:

git clone https://github.com/rsocket/rsocket-cli.git
cd rsocket-cli/
./gradlew --console plain installDist

Possible Solution

Workaround: switch to JDK 17 (Debian: sudo update-alternatives --config java).

Your Environment

  • latest rsocket, at the time of this bug the HEAD commit was 9cd4656 Update all dependencies + JDK 17 (#124)
  • Debian 12 with packages temurin-21-jdk and openjdk-17-jdk, no preinstalled gradle (only using gradlew wrapper).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant