dev@jaxb.java.net

Re: NoClassDefFoundError on JAXBException

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Mon, 7 Dec 2009 19:49:02 -0800

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