[jdom-interest] Re: JDOM-b7 will not compile

Matt Hunter xrkune at tconl.com
Thu Aug 16 08:57:53 PDT 2001


If you go out to his website you should be able to get a 1st Edition
errata page that lists the necessary code changes to make the code
run.  I was there about 2 months ago and there were some changes to the
example code that uses JDOM.

www.oreilly.com/catalog/javaxml/errata/javaxml.confirmed
www.oreilly.com/catalog/javaxml/errata/javaxml.unconfirmed

The second link specifically mentions the code on page 225

Matt Hunter
xrkune at tconl.com
"Do not take life too seriously.
You will never get out of it alive." -  Elbert Hubbard

On Thu, 16 Aug 2001, Mark Galbreath wrote:

> I wonder if something in the JDOM internals has changed since Brett's 1st edition that's keeping JDOMTest.java from compiling?  Has anybody been able to get this code ("Java and XML," pp. 224-227) to compile and run?
>
> Mark
>
>
> > From: Ian Lea <ian.lea at blackwell.co.uk>
> > Date: 2001/08/16 Thu AM 10:14:00 EDT
> > To: Mark Galbreath <mgalbrea at maximgroup.com>
> > CC: jdom-interest at jdom.org
> > Subject: Re: JDOM-b7 will not compile
> >
> > More proof that you've got some odd classpath problem!
> > Perhaps you've got different versions of JDOM floating
> > around.  Check the \jre\lib\ext directory, or put JDOM
> > there, or something.  Seems to be what Philip is suggesting.
> >
> >
> > --
> > Ian.
> >
> >
> > Mark Galbreath wrote:
> > >
> > > It usually is, and when I solve these things, it's usually a "doh!" experience.  Funny thing is, when I try compiling from the command prompt, I get get
> > >
> > > cannot resolve symbol
> > > symbol: method addProcessingInstruction (String,String)
> > > location: class org.jdom.Document
> > > Document doc = new Document(new Element("config", ns);
> > >                ^
> > > and when I try to compile with Forte I get
> > >
> > > cannot resolve symbol
> > > symbol: class Attribute
> > > location: package jdom
> > > import org.jdom.Attribute;
> > >                 ^
> > > What do you make of this?
> > >
> > > Mark
> >
>
> _______________________________________________
> 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