dev@jaxb.java.net

NoClassDefFoundError on JAXBException

From: Josh Hester <Josh.Hester_at_sas.com>
Date: Mon, 7 Dec 2009 16:50:33 -0500

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?

Thanks!

-Josh