Compilation Errors on MacOS Ventura 13.3.1 with JDK 17 #646
Replies: 4 comments 4 replies
-
@simonjolly Just an idea: instead of default master branch (meant to be used with Java 11), please select the development branch (meant to be used with Java 17, and providing more recent features). To do so, use commands:
Please try it and keep us informed of the results. |
Beta Was this translation helpful? Give feedback.
-
No issue with checking out the development branch, but the build still fails, this time with a different error: FAILURE: Build failed with an exception.
I note that this time Gradle 7.3 has been downloaded rather than 5.6.4 for the master branch. Here's the first few lines of the exception thrown: java.lang.IllegalArgumentException: Unsupported class file major version 63 |
Beta Was this translation helpful? Give feedback.
-
Don't use Java 19 but Java 17! According to your first message, you had installed Java 17, not Java 19. How come? Also set JAVA_HOME to root folder of Java 17 |
Beta Was this translation helpful? Give feedback.
-
OKay, I managed to make a little more progress. I'm genuinely nonplussed about the Java version: I simply downloaded the JDK 17 disk image from the Oracle download page: https://www.oracle.com/java/technologies/downloads/#java17 I can't even see that JDK 19 is available... Anyway, having removed Java, redownloaded it and reinstalled it — as well as setting JAVA_HOME=/usr/libexec/java_home — gradle now seems to be running correctly. I now get the following Java version: $ java -version Compiling required checking out the development branch, but Gradle now fails with the following exception:
FAILURE: Build failed with an exception.
I had assumed this is because it's looking for Tesseract data files. I've cloned both the Tessaract and Tesseract "tessdata" repository and put a soft link inside the audiveris directory, but it hasn't made any difference. I'm slightly nonplussed about it throwing exceptions about missing JAR files though. If you can let me know which specific files are needed from Tesseract, where they can be downloaded from and where they should be copied to in order for Audiveris to find them, that would be great. So two steps forward, one step... |
Beta Was this translation helpful? Give feedback.
-
I've just installed JDK 17 on my Apple Silicon MacBook Pro running MacOS 13.3.1 and cannot get Audiveris to compile. If I clone the git repository then run:
$ ./gradlew clean build
...I always end up with the following compilation errors:
Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
Subsequently rerunning gradle gives a different error:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
Any suggestions on what's going wrong and how to get Audiveris to compile?
Beta Was this translation helpful? Give feedback.
All reactions