[jdom-interest] Re: jdom 1.0 XMLOutputter -- problems

Bradley S. Huffman hip at a.cs.okstate.edu
Mon Apr 3 11:24:55 PDT 2006


> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jdom/input/SAXBuilder..
> 
> I downloaded jdom this weekend, put jdom.jar and all other jars that 
> come with the download in the classpath...  but get many errors when 
> trying to compile stuff (deprecated methods (like addAttribute(), which 
> I change to setAttribute() but still get errors..  errors that 
> SAXBuilder and XMLOutputter can't be found.. I looked in jar, I looked 
> in docs, these classes are there..) what is the problem pls, thank you...

addAttribute?  Sounds like there's a very old jar in your classpath. Did you
download from http://www.jdom.org/dist/binary either jdom-1.0.tar.gz or
jdom-1.0.zip, and are you sure it's in your classpath?

Brad


More information about the jdom-interest mailing list