[jdom-interest] jdom b6 with jdk 1.2.2 or 1.3.0

Jason Hunter jhunter at collab.net
Tue May 22 10:50:06 PDT 2001


> i'm trying to run the build file which comes with jdom, i'm doing exactly
> what it's written in the readme.txt file.
> 
> when i'm using jdk 1.2.2 it's not building, it's giving "BUILD FAILED" and
> the following error.

Unix or Windows?

Latest code in CVS or beta6?

Do you have any special classes in a system dir (see the FAQ for details
on this)?

> BUILD FAILED
> 
> javax.xml.parsers.FactoryConfigurationError:
> com.sun.xml.parser.SAXParserFactoryImpl
>         at
> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84)
>         at
> org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.java:498)
>         at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:100)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:107)
> 
> but when building with jdk 1.3.0 it's working fine. i just want to make sure
> if this is a limitation of jdom. i mean does jdom works with jdk122, coz my
> application uses jdk122 and i can't change it very soon.

JDOM definitely works with JDK 1.2.2.  I expect the problem is that Ant
needs to parse XML to build and it's finding one of the JDOM XML parser
JARs and is getting confused.  It works fine for me, so it may be
something different about your system.  The answers above will help
resolve it.

-jh-



More information about the jdom-interest mailing list