You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2019/11/08 10:34:00 UTC

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

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

Paul King edited comment on GROOVY-9305 at 11/8/19 10:33 AM:
-------------------------------------------------------------

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. Alternatively, you can remove the {{groovy-jaxb}} jar from your classpath.


was (Author: paulk):
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)