dev@jaxb.java.net

RE: NoClassDefFoundError on JAXBException

From: Josh Hester <Josh.Hester_at_sas.com>
Date: Mon, 7 Dec 2009 23:56:49 -0500

Thank you Tatu!

I should have mentioned that I'm including the following jars:

<classpathentry kind="lib" path="jaxb1-impl.jar"/>
        <classpathentry kind="lib" path="activation.jar"/>
        <classpathentry kind="lib" path="jsr173_1.0_api.jar"/>
        <classpathentry kind="lib" path="jaxb-xjc.jar"/>
        <classpathentry kind="lib" path="jaxb-impl.jar"/>
        <classpathentry kind="lib" path="jaxb-api.jar"/>

Any other ideas?

Thanks,

-Josh

-----Original Message-----
From: Tatu Saloranta [mailto:tsaloranta_at_gmail.com]
Sent: Monday, December 07, 2009 10:49 PM
To: dev_at_jaxb.dev.java.net
Subject: Re: NoClassDefFoundError on JAXBException

On Mon, Dec 7, 2009 at 1:50 PM, Josh Hester <Josh.Hester_at_sas.com> wrote:
> I'm writing an rcp application within eclipse, using java 1.5.0_17
>
> Everything is compiling fine, but when I try to run the application, it is giving me an error:
>
> Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
>
> I've read that this can be fixed by including the xsdlib jar, but I tried that and it didn't help.
>
> Anyone have any other ideas?

That class is part of JAXB API, so you need JAXB api jar. Or run on
JDK 1.6 which bundles it as part of JRE..

-+ Tatu +-

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: dev-help_at_jaxb.dev.java.net