[jdom-interest] Unable to build JDOM 1.0beta9-dev [2002]

Matt Futterman maf at csm.berkeley.edu
Tue Mar 18 13:55:20 PST 2003


I have been trying to build the latest source from CVS but get
the errors shown below.  It appears that for some reason a
statement in the code such as

import com.sun.java.collections.*;

fails to resolve, for instance, Iterator, so modifying the above
statement so that it reads

import com.sun.java.collections.Iterator;

is needed.  I have tried to hand code these changes but just
end up ultimately with more errors.

Does anyone have any suggestions?  (Or copies of jdom-jdk11.jar
and jdom.jar that they could give me?)

Thank you,
Matt

-----------------------------------------------
;.\lib\jaxp.jar;.\lib\jaxen-core.jar;.\lib\jaxen-jdom.jar;.\lib\saxpath.jar;.\li

b\collections.jar;C:\jdk1.1.8\lib\classes.zip
Starting Ant...
Buildfile: build.xml

init:
     [echo] ----------- JDOM 1.0beta9-dev [2002] ------------

prepare:
    [mkdir] Created dir: C:\cvs\jdom\build

prepare-src:
    [mkdir] Created dir: C:\cvs\jdom\build\src
    [mkdir] Created dir: C:\cvs\jdom\build\classes
     [copy] Copying 46 files to C:\cvs\jdom\build\src
     [copy] Copied 2 empty directories to C:\cvs\jdom\build\src

collections:

compile:
    [javac] Compiling 46 source files to C:\cvs\jdom\build\classes
    [javac]
C:\cvs\jdom\build\src\org\jdom\input\JDOMParseException.java:91: Bla
nk final variable 'partialDocument' may not have been initialized. It
must be as
signed a value in an initializer, or in every constructor.
    [javac]     public JDOMParseException(String message, Throwable
cause)  {
    [javac]            ^
    [javac] C:\cvs\jdom\build\src\org\jdom\Verifier.java:392: Class
org.jdom.Ite
rator not found in type declaration.
    [javac]         Iterator i = list.iterator();
    [javac]         ^
    [javac] C:\cvs\jdom\build\src\org\jdom\input\SAXBuilder.java:542:
Class org.
jdom.input.Iterator not found in type declaration.
    [javac]         Iterator iter = features.keySet().iterator();
    [javac]         ^
    [javac] C:\cvs\jdom\build\src\org\jdom\input\SAXBuilder.java:550:
Class org.
jdom.input.Iterator not found in type declaration.
    [javac]         Iterator iter2 = properties.keySet().iterator();
    [javac]         ^
    [javac] C:\cvs\jdom\build\src\org\jdom\input\SAXHandler.java:90:
Class org.j
dom.input.HashMap not found in type declaration.
    [javac]     private static final Map attrNameToTypeMap = new
HashMap(13);
    [javac]                                                      ^
    [javac] 5 errors

BUILD FAILED

C:\cvs\jdom\build.xml:164: Compile failed, messages should have been
provided.

Total time: 22 seconds
-----------------------------------------------





More information about the jdom-interest mailing list