[jdom-interest] Error Compiling for Java 118
Ian Plount
iplount at longs.com
Mon Apr 1 14:29:51 PST 2002
Thank your for the message. Using your direction to fully qualify classes I was able to
get it to build! I just added the following:
import java.util.NoSuchElementException;
to ContentList.java and it compiled just fine.
Thank you,
Ian
Jason Hunter wrote:
> I saw some errors like that when I was compiling for JDK 1.1.x also, and
> thought them strange since NoSuchElementException has been around since
> JDK 1.0. Seems it should compile Ok.
>
> To make the JDK 1.1.x build in b8 I made a few manual edits to the src
> (like fully qualifying some classes). I didn't check the edits in
> because I wanted to understand why the compile errors were happening,
> and my best guess at the time was it was an IRIX JDK bug.
>
> The FAQ is on the web site. I changed the README to say that, since we
> removed the FAQ section there.
>
> -jh-
>
> Ian Plount wrote:
> >
> > I am recieving the following error while trying to compile
> > JDOM b8 for compatibility with Java 118. Has anybody seen
> > this error before? If so can you provide me with some
> > information that will help me compile this. I have looked
> > through the site and list archives but have not found
> > anything that might relate to this. Also, the README file
> > says to look at the FAQ below if something goes wrong. There
> > is no FAQ below in the README file? Thank you for your help.
> >
> > Ian
> >
> > collections:
> >
> > compile:
> > [javac] Compiling 43 source files to
> > C:\jdomsrc\jdom-b8\build\classes
> > [javac]
> > C:\jdomsrc\jdom-b8\build\src\org\jdom\ContentList.java:978:
> > Class or
> > g.jdom.NoSuchElementException not found in type declaration.
> >
> > [javac] throw new
> > NoSuchElementException();
> > [javac] ^
> > [javac] 1 error
> >
> > BUILD FAILED
> >
> > C:\jdomsrc\jdom-b8\build.xml:159: Compile failed, messages
> > should have been prov
> > ided.
> >
> > Total time: 21 second
> >
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list