[jdom-interest] problem with xerces.jar bundeled with JDOM beta 8

Jason Hunter jhunter at servlets.com
Wed Apr 10 10:58:09 PDT 2002


The error message seems to indicate you didn't have xerces.jar in your
classpath.

The deprecation warning is because you shouldn't be using DOMBuilder to
build from files.  SAXBuilder is far faster and lighter.

-jh-

> "Kumar, Ajay" wrote:
> 
> hi
> recently down loaded JDOM beta 8 version and installed the JDOM and
> specified xerces.jar in CLASSPATH, then compiled the program and got
> an error :
> 
> HelloJDOM.java:34: cannot access org.w3c.dom.Element
> file org/w3c/dom/Element.class not found
>                 org.jdom.Document docX = builder.build(new
> File(args[0]));
> 
> Scenario 2: down loaded xerces seperately and installed and included
> xercesImpl.jar and xmlParserAPIs.jar in CLASSPATH
> and compiled the application. Then got a warning but successfully
> compiled:
> HelloJDOM.java:34: warning: build(java.io.File) in
> org.jdom.input.DOMBuilder has been deprecated
>                 org.jdom.Document docX = builder.build(new
> File(args[0]));
> 
>   Is any problem with the xerces.jar file bundled with JDOM ?
> 
> thanks
> ajay



More information about the jdom-interest mailing list