[jdom-interest] [Fwd: build problem]
benoit Rolland
benoit.rolland at free.fr
Sun Jun 23 19:18:35 PDT 2002
Buiding JDOM with jdk 1.1.8 or jdk1.3/1.4 in both case leeds to an error:
With jdk 1.1.8,
org.jdom.NoSuchElementException is not found in
org\jdom\ContentList.java:980
Should it be replaced by a JDOMException or does the
org.jdom.NoSuchElementException exist somewhere ?
With jdk 1.3 or 1.4,
imports to the com.sun.java.util.collections (needed only for a 1.1.8
compilation) seems to prevent the build to work correctly.
Should I remove manually all the "import com.sun.java.util.collections.*
" manually ?
C:\jprogs\jdom\jdom-b8>build package
JDOM Build System
-------------------
Building with classpath
c:\jdk1.3.1_03\lib\tools.jar;.\lib\xerces.jar;.\lib\ant.
jar;.\lib\jaxp.jar;
Starting Ant...
Buildfile: build.xml
init:
[echo] ----------- JDOM 1.0beta8-dev [2002] ------------
prepare:
prepare-src:
collections:
compile:
[javac] Compiling 4 source files to C:\jprogs\jdom\jdom-b8\build\classes
[javac]
C:\jprogs\jdom\jdom-b8\build\src\org\jdom\ContentList.java:60: Packa
ge com.sun.java.util.collections not found in import.
[javac] import java.util.*;\u000aimport com.sun.java.util.collections.*;
[javac] ^
[javac] C:\jprogs\jdom\jdom-b8\build\src\org\jdom\Document.java:61:
Package
com.sun.java.util.collections not found in import.
[javac] import java.util.*;\u000aimport
com.sun.java.util.collections.*;\u00
0aimport com.sun.java.util.collections.*;\u000aimport
com.sun.java.util.collecti
ons.*;\u000aimport com.sun.java.util.collections.*;
[javac] ^
[javac]
C:\jprogs\jdom\jdom-b8\build\src\org\jdom\ProcessingInstruction.java
:61: Package com.sun.java.util.collections not found in import.
[javac] import java.util.*;\u000aimport
com.sun.java.util.collections.*;\u00
0aimport com.sun.java.util.collections.*;\u000aimport
com.sun.java.util.collecti
ons.*;\u000aimport com.sun.java.util.collections.*;
[javac] ^
[javac] C:\jprogs\jdom\jdom-b8\build\src\org\jdom\Namespace.java:60:
Package
com.sun.java.util.collections not found in import.
[javac] import java.util.*;\u000aimport
com.sun.java.util.collections.*;\u00
0aimport com.sun.java.util.collections.*;\u000aimport
com.sun.java.util.collecti
ons.*;\u000aimport com.sun.java.util.collections.*;
[javac] ^
[javac] 4 errors
BUILD FAILED
JDOM Build System
-------------------
Building with classpath
C:\jdk1.1.8\lib\tools.jar;.\lib\xerces.jar;.\lib\ant.jar
;.\lib\jaxp.jar;.\lib\collections.jar;C:\jdk1.1.8\lib\classes.zip
Starting Ant...
Buildfile: build.xml
init:
[echo] ----------- JDOM 1.0beta8-dev [2002] ------------
prepare:
prepare-src:
collections:
compile:
[javac] Compiling 18 source files to
C:\jprogs\jdom\jdom-b8\build\classes
[javac]
C:\jprogs\jdom\jdom-b8\build\src\org\jdom\ContentList.java:980: Clas
s org.jdom.NoSuchElementException not found in type declaration.
[javac] throw new NoSuchElementException();
[javac] ^
[javac] 1 error
BUILD FAILED
More information about the jdom-interest
mailing list