[ https://issues.apache.org/jira/browse/GROOVY-11328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17823005#comment-17823005 ]
Paul King commented on GROOVY-11328: ------------------------------------ This is an unexpected impact when moving to the latest Gradle. The workaround is to remove the groovy-raw jar from the installation. It isn't meant to be there but our previously working build steps for removing it seem to no longer work. As mentioned earlier, it doesn't impact all platforms. Maybe on Windows (not affected) the groovy jar is on the classpath before the raw jar but not for Linux. > Groovy 4.0.19 - Unable to start (picocli) > ----------------------------------------- > > Key: GROOVY-11328 > URL: https://issues.apache.org/jira/browse/GROOVY-11328 > Project: Groovy > Issue Type: Bug > Components: command line processing > Affects Versions: 4.0.19 > Environment: JDK 21.0.2 (Zulu), Mac, sdkman > Reporter: Lenny Primak > Priority: Blocker > > 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: > {code:java} > 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 > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)