[jira] [Commented] (GROOVY-9305) Unable to load class JaxbExtensions

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (GROOVY-9305) Unable to load class JaxbExtensions

Eric Milles (Jira)

    [ https://issues.apache.org/jira/browse/GROOVY-9305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16970042#comment-16970042 ]

Paul King commented on GROOVY-9305:
-----------------------------------

Yes, if you have downloaded a standard Groovy install, you'll find the necessary jars under {{lib/extras-jaxb}}. These are automatically added to the classpath if using groovysh/groovy/groovyc/groovyConsole from the commandline but if you are using an IDE you might need to add manually.

> 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)