Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] NoClassDefFoundError - -
 -  org/xml/sax/SAXNotSupportedException

Laurent Bihanic

2005-06-30

Replies:


Hi,

Jean Carot wrote:
> java.exe -classpath .\build;.\lib\org.jdom\jdom.jar; MainClass
> Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/SAXNotSupportedException
>
> it appears to be the line "SAXBuilder sxb = new SAXBuilder();"
>
> I really don't understand why it won't work from a Windows to another. Any help? :)

Maybe you're running on an old JDK version that has no XML support bundled.
Try adding Xerces JARs (xml-apis.jar and xerces.jar) to the classpath.

Laurent
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.