[jdom-interest] required dependencies

Jason Hunter jhunter at servlets.com
Tue Mar 4 16:08:59 PST 2008

Per the jdom/lib/README:

JDK 1.4 includes XML parser and transformation classes, so if you're
using JDK 1.4+ you don't really need to worry about most of the JARs
in this directory.  However, you might want to add xerces.jar and
xml-apis.jar to your classpath so JDOM will use Xerces 2.4.0 instead
of the default JDK parser Crimson 1.1.  You can also use xalan.jar to
use Xalan 2.5_D1 instead of the older Xalan that comes with the JDK.
See below.

For JDK 1.3 and earlier users, you'll want to add xerces.jar,
xml-apis.jar, and xalan.jar to your classpath.  Or you can use any
third party parser too.

All users should add jaxen-core.jar, jaxen-jdom.jar, and saxpath.jar
to their classpath to use the XPath features in JDOM.

(Some of the details are now stale, but it answers the question that yes 
it's just there for convenience on old JDKs.)


Steffen Pingel wrote:
> Hi,
> I am trying to determine the minimal dependencies for the Eclipse Orbit JDOM 
> 1.0 bundle [1]. The bundle currently specifies Xerces as a mandatory 
> dependency. My understanding is that with Java 1.4 or higher this dependency 
> is optional and JDOM will use the built-in XML parser of the JRE if Xerces is 
> not available. 
> Is the assumption correct that JDOM will work without any additional 
> dependencies if running with Java 1.4 or higher?
> Thanks.
> Steffen
> [1] 221047: make Xerces dependency in org.jdom bundle optional
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=221047

More information about the jdom-interest mailing list