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

Hey ! Bug : Execution failed for task ':compileJava'. #3

Open
ppmartin26 opened this issue Jan 5, 2022 · 3 comments
Open

Hey ! Bug : Execution failed for task ':compileJava'. #3

ppmartin26 opened this issue Jan 5, 2022 · 3 comments

Comments

@ppmartin26
Copy link

Hey Andrew
Thanks for this awesome tool.
I'm getting this following error, do you have an idea ?
Thanks a lot for your great work
greetings from France
Paul

2 actionable tasks: 2 executed
BUILD FAILED in 5s
Run with --scan to get full insights. * Get more help at https://help.gradle.org
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > error: invalid source release: 17 * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. >

Task :compileJava FAILED
Task :generateProgramId
targetOS=macosx-x86_64
Configure project :
./gradlew build
Building audiveris
javac 11.0.13
javac -version
Java(TM) SE Runtime Environment 18.9 (build 11.0.13+10-LTS-370) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.13+10-LTS-370, mixed mode)
java version "11.0.13" 2021-10-19 LTS
java -version
Checking Java Version
Stage 2: AudiverisBuild


Audiveris already downloaded, skipping stage
Stage 1: AudiverisDownload

@arshak
Copy link

arshak commented Jan 9, 2022

I think the issue is the version of the JDK. Since this project uses the audiveris development branch that depends on JDK 17 not 11 but the code explicitly checks for 11.

@ppmartin26
Copy link
Author

Ok I understand.
I checked a bit the code but I couldnt find the line where this verification is done.
I actually dont know a lot in JS...
Do you have an idea of which part I should edit ?
Thanks a lot

@amcolash
Copy link
Owner

Sorry for the late response. Yes that probably is the case. I had issues using audiveris on older versions of java (at least while developing the code). Maybe they finally updated the codebase to a much newer version. If I get a chance, I can take a look. I haven't honestly used this tool much lately.

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

3 participants