<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<blockquote TYPE=CITE>&nbsp;</blockquote>

<p><br>Hey Kevin,
<p>I had this same problem.&nbsp; If you look through the archives you
will see the thread, the title of the thread is "Troubles building JDOM
version".&nbsp; Philip solved the mystery.
<p>In my case the reason the build failed was due to the JAXP package I
installed from Sun.&nbsp; 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).
<p>Anyway, removing those jars from the extensions directory cleared up
my problem.&nbsp; 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.
<p>Hope this helps,
<br>Ryan
<br>&nbsp;
<br>&nbsp;
<blockquote TYPE=CITE>Message: 2
<br>From: Kevin Broderick &lt;KBroderick@emg.ie>
<br>To: jdom-interest@jdom.org
<br>Date: Tue, 25 Jul 2000 16:08:14 +0100
<br>charset="iso-8859-1"
<br>Subject: [jdom-interest] Build errors:
<p>Hi,
<br>When I execute the batch file "build.bat" after I set the JAVA_HOME
<br>variable,
<br>I get this error:
<p>----------- Java Document Object Model (JDOM) 1.0beta4 [2000] ------------
<br>Executing Target: prepare
<br>Created dir: D:\java\jdom\jdom\build
<br>Executing Target: prepare-src
<br>Created dir: D:\java\jdom\jdom\build\src
<br>Created dir: D:\java\jdom\jdom\build\classes
<br>Copying 31 files to D:\java\jdom\jdom\build\src
<br>Executing Target: compile
<br>Compiling 31 source files to D:\java\jdom\jdom\build\classes
<br>D:\java\jdom\jdom\build\src\org\jdom\input\DOMBuilder.java:316: Method
<br>getPublicId() not found in interface org.w3c.dom.DocumentType.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
String publicID = domDocType.getPublicId();
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
^
<br>D:\java\jdom\jdom\build\src\org\jdom\input\DOMBuilder.java:317: Method
<br>getSystemId() not found in interface org.w3c.dom.DocumentType.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
String systemID = domDocType.getSystemId();
<p>What do I need to do to get this to compile.Someone on the list a few
days
<br>ago suggested commenting out some code, that helped the compile
<br>but the samples don't compile then, so I ask again, please save my
sanity,
<br>any ideas about how to get this to compile and improve my flagging
<br>morale.
<br>Many thanks,
<br>Kev
<br>&nbsp;</blockquote>

<pre>--&nbsp;
Ryan O'Connell
Sun Microsystems, Inc.
1 Network Drive&nbsp;
PO Box 4003
Burlington, MA.&nbsp; 01803-0903
Email&nbsp;&nbsp; : ryan.oconnell@sun.com
Phone&nbsp;&nbsp; : 781.442.2658
Fax&nbsp;&nbsp;&nbsp;&nbsp; : 781.442.1646
Mailstop: ubur03-405</pre>
&nbsp;</html>