Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
4.0.19
-
None
-
JDK 21.0.2 (Zulu), Mac, sdkman
Description
Hi,
I just upgraded from Groovy 4.0.18 to 4.0.19 and I can no longer start groovy command line.
I am getting this exception:
java -version openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Zulu21.32+17-CA (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Zulu21.32+17-CA (build 21.0.2+13-LTS, mixed mode, sharing) lprimak@Lennys-MacBook-Pro playpen % groovy java.lang.NoClassDefFoundError: picocli/CommandLine$ParameterException at java.base/java.lang.Class.getDeclaredMethods0(Native Method) at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3578) at java.base/java.lang.Class.getMethodsRecursive(Class.java:3719) at java.base/java.lang.Class.getMethod0(Class.java:3705) at java.base/java.lang.Class.getMethod(Class.java:2393) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:110) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:37) Caused by: java.lang.ClassNotFoundException: picocli.CommandLine$ParameterException at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:180) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:148) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ... 7 more lprimak@Lennys-MacBook-Pro playpen % type groovy groovy is /Users/lprimak/.sdkman/candidates/groovy/4.0.19/bin/groovy