[jdom-interest] Build problems

Jason Hunter jhunter at acm.org
Tue Nov 14 02:21:10 PST 2000


You have the old DOM1 in your classpath ahead of the xerces.jar
containing the current DOM2.  DOM1 can come from many places including a
forgotten JAR in your system classpath dir, or jaxp.jar.

-jh-

Mark_Brown at aoncons.com wrote:
> 
> I've downloaded the Beta 5 archive.  I've also downloaded the daily snapshot
> (jdom-src.zip) as of yesterday 11/9/2000.  When I attempt to build the source, I
> get 3 errors as follows:
> 
> F:\jdom>build
> JDOM Build System
> -------------------
> Building with classpath f:\jdk1.3\lib\tools.jar;.\lib\xerces.jar;.\lib\ant.jar;
> Starting Ant...
> Buildfile: build.xml
> 
> init:
> ----------- JDOM 1.0beta5 [2000] ------------
> 
> prepare:
> 
> prepare-src:
> 
> collections:
> 
> compile:
>     [javac] Compiling 2 source files to F:\jdom\build\classes
>     [javac] F:\jdom\build\src\org\jdom\output\DOMOutputter.java:263: Method
> createAttributeNS(java.lang.String, java.lan
> g.String) not found in interface org.w3c.dom.Document.
>     [javac]              domAttr =
> domDoc.createAttributeNS(attribute.getNamespaceURI(),
>     [javac]                                                ^
>     [javac] F:\jdom\build\src\org\jdom\input\DOMBuilder.java:416: Method
> getPublicId() not found in interface org.w3c.do
> m.DocumentType.
>     [javac]                 String publicID = domDocType.getPublicId();
>     [javac]                                                         ^
>     [javac] F:\jdom\build\src\org\jdom\input\DOMBuilder.java:417: Method
> getSystemId() not found in interface org.w3c.do
> m.DocumentType.
>     [javac]                 String systemID = domDocType.getSystemId();
>     [javac]                                                         ^
>     [javac] 3 errors
> 
> BUILD FAILED
> 
> build.xml:144: Compile failed
> 
> Total time: 2 seconds
> F:\jdom>
> 
> It appears that the methods that can't be found are from org.w3c.dom.Document
> and org.w3c.dom.DocumentType.
> I have reviewed the documentation for the dom package and can't find any
> reference to these methods.
> What am I doing wrong?
> 
> Thanks in advance,
> Mark Brown
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list