Audiveris / audiveris

Latest generation of Audiveris OMR engine
https://audiveris.github.io/audiveris
GNU Affero General Public License v3.0
1.62k stars 235 forks source link

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

Open KRider92 opened 5 months ago

KRider92 commented 5 months ago

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 commented 5 months ago

...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 commented 5 months ago

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?