Closed joshua-gould closed 1 year ago
> Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"]
Which Java version are you using which leads to this NoClassDefFoundError
with the Gradle wrapper?
For the second stack trace, what is the output of gradle --version
? The current wrapper is using 6.2.1 but from the stack trace it looks like you are using Gradle 7.x which is an build upgrade we might have to review.
I've managed to get the ./gradlew script to run with Java 11 (on Mac Monterey) but I get the error I received previously using the system provided gradle (The server may not support the client's requested TLS protocol versions). What version of the JVM do you use to build successfully? Thanks.
I also get the TLS error using Ubuntu and Java 8. Thanks.
What version of the JVM do you use to build successfully?
The library itself requires Java 8+ at the moment but I am also usually building using JDK 11.
I also get the TLS error using Ubuntu and Java 8. Thanks.
Thanks. Same question as above, which version of Ubuntu and Gradle?
While investigating this issue, I noticed that JDK 17 is not working with the version of Gradle supplied in the wrapper so I'll probably open a PR to upgrade this anyways.
Ubuntu 20.04.5 LTS and Gradle 6 gives the TLS error using both Java 8 and Java 11.
@joshua-gould thanks for the additional information. Re system Gradle, I tried reproducing your issue with the following Docker environment but I could not reproduce the issue you are seeing
FROM ubuntu:20.04
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt install -yqq default-jdk gradle git
RUN git clone https://github.com/glencoesoftware/raw2ometiff /tmp/raw2ometiff
WORKDIR /tmp/raw2ometiff
ENTRYPOINT ["gradle"]
Is there any key store set-up in your environment and configured via the javax.net.ssl.trustStore
property as this could possibly lead to the types of exceptions described here?
Most importantly, the Gradle wrapper is the main build workflow we are supporting for these utilities at the moment. From the above, I understand this approach is correctly working for you with JDK 11. Do you still have a configuration where ./gradlew build
is failing which blocks your development?
Closing in the absence of further information, as the Gradle wrapper should work as previously indicated. Feel free to re-open if there is a scenario where ./gradlew build
fails.
Tried using ./gradlew script and system installed gradle. Thanks.