[jdom-interest] can't install JDOM beta 8 with JDK1.2.2

Luca Passani passani at eunet.no
Fri Apr 26 11:32:38 PDT 2002


Thank you, Ian. This did the trick. Unfortunately, I am not able to
compile a random sample from the samples directory (Count.java
without the "package sample" declaration,attached).

Can you see why?

my Java:
G:\projects\wurfl>java -fullversion
java full version "JDK-1.2.2_007"

The content of JAVA_HOME/lib/ext:

crimson.jar
iiimp.jar
jaxen-core.jar
jaxen-jdom.jar
jaxp-api.jar
jaxp.jar
jdom-jdk11.jar
jdom.jar
sax.jar
saxpath.jar
xalan.jar
xerces.jar
xercesImpl.jar

the error I get:

G:\projects\wurfl>javac Count.java
Count.java:71: Class com.sun.java.util.collections.List not found in declaration
.
        List children = doc.getContent();
             ^
Count.java:71: Incompatible type for declaration. Can't convert com.sun.java.uti
l.collections.List to java.util.List.
        List children = doc.getContent();
             ^
Count.java:90: Class com.sun.java.util.collections.List not found in declaration
.
        List attributes = element.getAttributes();
             ^
Count.java:90: Incompatible type for declaration. Can't convert com.sun.java.uti
l.collections.List to java.util.List.
        List attributes = element.getAttributes();
             ^
Count.java:92: Class com.sun.java.util.collections.List not found in declaration
.
        List children = element.getContent();
             ^
Count.java:92: Incompatible type for declaration. Can't convert com.sun.java.uti
l.collections.List to java.util.List.
        List children = element.getContent();
             ^
6 errors
			
thank you

luca


Ian Lea wrote:
> 
> If you just want to play with JDOM or just use it
> you don't need to build it.  There is a jdom.jar
> in the distribution you can use as it.
> 
> I've no idea what the internal JIT error is about
> but it wouldn't appear to have much to do with
> JDOM.  The compile seems to be failing because
> the 1.1 collections packages seem to have got
> involved somehow.  All the com.sun.java.util.collections
> stuff.  You don't need that.  Lose it.  Are you
> sure you have read the instructions that came with the
> download?
> 
> --
> Ian.
> ian at digimem.net
> 
> > passani at eunet.no (Luca Passani) wrote
> >
> > Hallo, I want to play with JDom. I downloaded the latest
> > package and tried to install according to instructions.
> > Unfortunately, it doesn't build out of the box
> > as one might expect (JDOM beta 9, Win2k, JDK 1.2.2)
> >
> > There are conflicts among classes.
> >
> > The FAQ on jdom.org is not helping.
> >
> > Any ideas?
> >
> > thank you
> >
> > Luca
> >
> >
> > G:\projects\wurfl\jdom-b8>build
> > build
> > JDOM Build System
> > -------------------
> > Building with classpath G:\jdk1.2.2\lib\tools.jar;.\lib\xerces.jar;.\lib\ant.jar;.\lib\jaxp.jar;
> > Starting Ant...
> > Buildfile: build.xml
> > A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation target' has occurred in :
> >   'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
> >   Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
> >
> >
> > init:
> >      [echo] ----------- JDOM 1.0beta8-dev [2002] ------------
> >
> > prepare:
> >
> > prepare-src:
> >
> > collections:
> >
> > compile:
> >     [javac] Compiling 22 source files to G:\projects\wurfl\jdom-b8\build\classes
> >     [javac] G:\projects\wurfl\jdom-b8\build\src\org\jdom\AttributeList.java:85: Ambiguous class: java.util.AbstractList and com.sun.java.util.collections.AbstractList
> >     [javac] class AttributeList extends AbstractList
> >     [javac]                             ^
> >     [javac] G:\projects\wurfl\jdom-b8\build\src\org\jdom\AttributeList.java:86: Ambiguous class: java.util.List and com.sun.java.util.collections.List
> >     [javac]                     implements List, java.io.Serializable {
> >     [javac]                                ^
> >     [javac] G:\projects\wurfl\jdom-b8\build\src\org\jdom\ContentList.java:86: Ambiguous class: java.util.AbstractList and com.sun.java.util.collections.AbstractList
> >     [javac] class ContentList extends AbstractList implements java.io.Serializable {
> >     [javac]                           ^
> >     [javac] G:\projects\wurfl\jdom-b8\build\src\org\jdom\ContentList.java:717: Ambiguous class: java.util.AbstractList and com.sun.java.util.collections.AbstractList
> >     [javac]     class FilterList extends AbstractList {
> >     [javac]                              ^
> >   :
> >   :
> >     [javac] G:\projects\wurfl\jdom-b8\build\src\org\jdom\input\SAXBuilder.java:133: Ambiguous class: java.util.HashMap and com.sun.java.util.collections.HashMap
> >     [javac]     private HashMap properties = new HashMap(5);
> >     [javac]                                      ^
> >     [javac] Too many errors.  (The limit on reported errors is 100.)
> >     [javac] 108 errors
> >
> > BUILD FAILED
> 
> ----------------------------------------------------------------------
> Searchable personal storage and archiving from http://www.digimem.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Count.java
Type: java/*
Size: 3907 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20020426/5fb93f5c/Count.bin


More information about the jdom-interest mailing list