audiveris
audiveris copied to clipboard
Java deprecation error halts Gradle build
I am trying to install Audiveris on MacOS 12.6 (Apple Silicon M1). I have Java 19 installed, and when I perform "./gradlew build" I get the following error:
/Applications/Audiveris MusicOCR/audiveris/src/main/org/audiveris/omr/ui/MemoryMeter.java:116: warning: [removal] runFinalization() in System has been deprecated and marked for removal
System.runFinalization();
^
/Applications/Audiveris MusicOCR/audiveris/src/main/org/audiveris/omr/util/Memory.java:65: warning: [removal] runFinalization() in Runtime has been deprecated and marked for remova
rt.runFinalization();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 warnings
> Task :startScripts FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':startScripts'.
> Error while evaluating property 'relativeClasspath' of task ':startScripts'
> Could not resolve all files for configuration ':runtimeClasspath'.
> Could not find tesseract-4.1.1-1.5.6-macosx-arm64.jar (org.bytedeco:tesseract:4.1.1-1.5.6).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/bytedeco/tesseract/4.1.1-1.5.6/tesseract-4.1.1-1.5.6-macosx-arm64.jar
> Could not find leptonica-1.81.1-1.5.6-macosx-arm64.jar (org.bytedeco:leptonica:1.81.1-1.5.6).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/bytedeco/leptonica/1.81.1-1.5.6/leptonica-1.81.1-1.5.6-macosx-arm64.jar
* 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 15s
6 actionable tasks: 6 executed
Any ideas how to solve that?
Thanks.
Sorry, I can't provide any immediate answer, for I have yet no experience with Java 19, and I'm too busy on other topics.
Could someone on this forum give a hand to @fablau ?
No news on this issue?