[jdom-interest] Ambiguous references and trouble compiling beta-8
Philip Nelson
panmanphil at yahoo.com
Mon Sep 9 18:39:59 PDT 2002
OK I was able to duplicate your problem. I recreated it buy just using
build11.sh instead of build.sh. Once you have done that, the source files
under build/src are modified with the jdk 1.1 collections code added. The
error will repeat itself unless you start over.
The original jdk 1.2+source is unmodified so the fix is easy:
./build.sh clean
./build.sh
This worked for me under Suse 8 with the ibm jdk 1.3
--- Emmett McLean <emmettwa at onebox.com> wrote:
> I'm getting discouraged ...
>
> 1. README.txt says all that you have to do is set JAVA_HOME.
> No installation instructions beyond that.
>
> 2. There is no JAVA 1 or JAVA 2 version. Only one version
> available at http://www.jdom.org/dist/binary/
>
> 3. I've duplicated the failing compilation on Solaris UNIX.
>
> Thanks for trying.
>
> Cheers,
>
> em
>
> --
> Emmett McLean
> emmettwa at onebox.com - email
> (866) 841-9139 x1160 - voicemail/fax
>
>
>
> ---- Ian Lea <ian at digimem.net> wrote:
> > Perhaps you have tried to build the 1.1 version. That
> > changes the import lines in the source files, I think.
> >
> > Either study README.txt and figure out how to get back
> > to the 1.2+ versions, or start again from scratch and
> > steer well clear of collections.jar and anything with
> > 11 in the name. Or forget about building it yourself
> > and just use build/jdom.jar.
> >
> >
> >
> > --
> > Ian.
> > ian at digimem.net
> >
> >
> > > emmettwa at onebox.com (Emmett McLean) wrote
> > >
> > > This is what happens without collections.jar
> > >
> > >
> > > ! www1:/usr>cd jdom-b8
> > > ! www1:/usr/jdom-b8>ant
> > > Buildfile: build.xml
> > >
> > > init:
> > > [echo] ----------- JDOM 1.0beta8-dev [2002] ------------
> > >
> > > prepare:
> > >
> > > prepare-src:
> > >
> > > collections:
> > >
> > > compile:
> > > [javac] Compiling 31 source files to
> C:\cygwin\usr\jdom-b8\build\classes
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\AttributeList.java:60:
> > > Package com.sun.java.uti
> > > l.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\ContentList.java:60:
> > > Package com.sun.java.util.
> > > collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:61:
> > > Package com.sun.java.util.col
> > > lections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Element.java:61:
> > > Package com.sun.java.util.coll
> > > ections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\input\DefaultJDOMFactory.java:61:
> > > Package com.s
> > > un.java.util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\input\JDOMFactory.java:61:
> > > Package com.sun.java
> > > .util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\input\DOMBuilder.java:62:
> > > Package com.sun.java.
> > > util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\input\SAXBuilder.java:63:
> > > Package com.sun.java.
> > > util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\input\SAXHandler.java:63:
> > > Package com.sun.java.
> > > util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Namespace.java:60:
> > > Package com.sun.java.util.co
> > > llections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\output\DOMOutputter.java:62:
> > > Package com.sun.ja
> > > va.util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\output\NamespaceStack.java:59:
> > > Package com.sun.
> > > java.util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\output\SAXOutputter.java:63:
> > > Package com.sun.ja
> > > va.util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\output\XMLOutputter.java:61:
> > > Package com.sun.ja
> > > va.util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\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.*;
> > > [javac] ^
> > > [javac]
> C:\cygwin\usr\jdom-b8\build\src\org\jdom\transform\JDOMResult.java:61:
> > > Package com.sun.j
> > > ava.util.collections not found in import.
> > > [javac] import java.util.*;\u000aimport
> com.sun.java.util.collections.*;
> > > [javac] ^
> > > ! www1:/usr/jdom-b8>
> > > --
> > > Emmett McLean
> > > emmettwa at onebox.com - email
> > > (866) 841-9139 x1160 - voicemail/fax
> > >
> > >
> > >
> > ----------------------------------------------------------------------
> > Searchable personal storage and archiving from http://www.digimem.net/
> >
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
More information about the jdom-interest
mailing list