[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=16969643#comment-16969643 ]

Eric Milles commented on GROOVY-9305:
-------------------------------------

javax.xml has been moved from Java SE to Java EE.  You will need to add extra dependencies to use JAXB with the JDK and Groovy.

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