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

Luca Passani passani at eunet.no
Fri Apr 26 13:26:08 PDT 2002


thank you Ian. Managed to compile now. Unfortunately, still no joy.
Since I am here, please let me ask more questions. Hopefully
this will help you make a better distribution for non-gurus.
Why doesn't build work for samples? yet, Java_HOME is set correctly...

thank you

Luca

G:\projects\wurfl\jdom-b8>build samples
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 t
arget' 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.cg
i


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

prepare:

prepare-samples:

prepare-src:

collections:

samples:
    [javac] Compiling 14 source files to G:\projects\wurfl\jdom-b8\build\classes


BUILD FAILED

G:\projects\wurfl\jdom-b8\build.xml:179: Cannot use classic compiler, as it is n
ot available A common solution is to set the environment variable JAVA_HOME to y
our jdk directory.

Total time: 3 seconds

G:\projects\wurfl\jdom-b8>set JAVA_HOME
JAVA_HOME=G:\jdk1.2.2


Ian Lea wrote:
> 
> You need to remove jdom-jdk11.jar from the lib/ext
> directory.  It is needed if and only if you are running
> java 1.1.
> 
> All: how about removing jdom-jdk11.jar from the
> distribution?  It seems to cause a fair amount of
> confusion.  Make it available as a separate download?
> Or perhaps call it something like jdom.jar.jdk11 so
> that people can't pick it up by accident.
> 
> --
> Ian.
> ian at digimem.net
> 
> > passani at eunet.no (Luca Passani) wrote
> >
> > 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
> 
> ----------------------------------------------------------------------
> Searchable personal storage and archiving from http://www.digimem.net/



More information about the jdom-interest mailing list