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

macOS Build fails - Unsupported class file major version 66 #734

Open
KRider92 opened this issue May 30, 2024 · 2 comments
Open

macOS Build fails - Unsupported class file major version 66 #734

KRider92 opened this issue May 30, 2024 · 2 comments

Comments

@KRider92
Copy link

KRider92 commented May 30, 2024

Hi,

When trying to build on macOS (intel mac) this fails with the error message:

./gradlew build

FAILURE: Build failed with an exception.

  • What went wrong:
    BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 66

Unsupported class file major version 66

  • Try:

Run with --stacktrace option to get the stack trace.

Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 1s

build debug log is attached.
Any idea what's going on here?

@KRider92
Copy link
Author

...seems as if #673 brought the right hint - JDK version 22 uninstalled, version 21 installed, and it seems to work further into the build at least.

@hbitteur
Copy link
Contributor

hbitteur commented Jun 1, 2024

Unsupported class file major version 66

This message suggests a mismatch between Java versions.
I can confirm that Java 21 is required today to build Audiveris from the development branch.

But, at least in theory, Java 22 should be able to cope with Java 21 byte code. Right?

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

2 participants