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

Mark Galbreath mgalbrea at maximgroup.com
Thu Aug 16 07:55:05 PDT 2001


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
> 




More information about the jdom-interest mailing list