[jdom-interest] Re: jdom-interest digest, Vol 1 #131 - 16 msgs
Ryan O'Connell -HESE
ryan.oconnell at sun.com
Tue Jul 25 12:21:12 PDT 2000
I had this same problem. If you look through the archives you will see the thread, the
title of the thread is "Troubles building JDOM version". Philip solved the mystery.
In my case the reason the build failed was due to the JAXP package I installed from Sun. I
added the JAXP jar files to the jre/lib/ext dir under my JDK and this was causing the JAXP
jar files to be found before the JDOM files during compilation (the two distributions have
common files, namely DocumentType).
Anyway, removing those jars from the extensions directory cleared up my problem. If you do
not have this problem, check your classpath, if you have it set, to ensure there are no
conflicting files that may be found in the classpath before finding the correct files in
the JDOM distribution.
Hope this helps,
> Message: 2
> From: Kevin Broderick <KBroderick at emg.ie>
> To: jdom-interest at jdom.org
> Date: Tue, 25 Jul 2000 16:08:14 +0100
> Subject: [jdom-interest] Build errors:
> When I execute the batch file "build.bat" after I set the JAVA_HOME
> I get this error:
> ----------- Java Document Object Model (JDOM) 1.0beta4  ------------
> Executing Target: prepare
> Created dir: D:\java\jdom\jdom\build
> Executing Target: prepare-src
> Created dir: D:\java\jdom\jdom\build\src
> Created dir: D:\java\jdom\jdom\build\classes
> Copying 31 files to D:\java\jdom\jdom\build\src
> Executing Target: compile
> Compiling 31 source files to D:\java\jdom\jdom\build\classes
> D:\java\jdom\jdom\build\src\org\jdom\input\DOMBuilder.java:316: Method
> getPublicId() not found in interface org.w3c.dom.DocumentType.
> String publicID = domDocType.getPublicId();
> D:\java\jdom\jdom\build\src\org\jdom\input\DOMBuilder.java:317: Method
> getSystemId() not found in interface org.w3c.dom.DocumentType.
> String systemID = domDocType.getSystemId();
> What do I need to do to get this to compile.Someone on the list a few days
> ago suggested commenting out some code, that helped the compile
> but the samples don't compile then, so I ask again, please save my sanity,
> any ideas about how to get this to compile and improve my flagging
> Many thanks,
Sun Microsystems, Inc.
1 Network Drive
PO Box 4003
Burlington, MA. 01803-0903
Email : ryan.oconnell at sun.com
Phone : 781.442.2658
Fax : 781.442.1646
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jdom-interest