[ https://issues.apache.org/jira/browse/GROOVY-9305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16982109#comment-16982109 ]
Paul King commented on GROOVY-9305: ----------------------------------- Copying my answer from SO: {{--add-modules java.xml.bind}} is not appropriate for Java 11 since it has deleted that module. I would use {{set DEBUG=true}} and see what is actually happening on your machine. {{startGroovy.bat}} (called by {{groovyConsole.bat}}) should be adding {{-Dgroovy.jaxb=jaxb}} to {{JAVA_OPTS}} which is then used by {{groovy-starter.conf}}. You could check you haven't created a custom version of that conf file on your classpath. > Unable to load class JaxbExtensions > ----------------------------------- > > Key: GROOVY-9305 > URL: https://issues.apache.org/jira/browse/GROOVY-9305 > Project: Groovy > Issue Type: Bug > Components: Groovy Console > Affects Versions: 3.0.0-beta-3 > Environment: Training > Reporter: Rod Hamann > Priority: Minor > > Honestly, I am learning Groovy and I am getting this will taking the online > course. > Windows 10 > Java Folder : *C:\Program Files\Java\jdk-13.0.1* > +Env Vars:+ > * *CLASSPATH* = *C:\Program Files\Java\jdk-13.0.1\lib* > * *JAVA_HOME* = *C:\Program Files\Java\jdk-13.0.1* > * Path env has "*C:\Program Files\Java\jdk-13.0.1\bin*" in it > > +Console:+ > groovy> println "X" > > Exception thrown > java.lang.NoClassDefFoundError: Unable to load class > org.apache.groovy.jaxb.extensions.JaxbExtensions due to missing dependency > javax/xml/bind/JAXBContext > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) -- This message was sent by Atlassian Jira (v8.3.4#803005)