[jdom-interest] More runtime class-finding problems - java/util/LinkedList ?

Ian Lea ian.lea at blackwell.co.uk
Mon Jul 2 12:46:01 PDT 2001


Are you running java 1.2+ on the client?  java.util.LinkedList is
part of the Collections API which came in at 1.2.  There is
a 1.1 version of jdom.jar in the build/ directory along with
lib/collections.jar and, I think, some stuff in the FAQ.


--
Ian.
ian.lea at blackwell.co.uk

Jake Latham wrote:
> 
> OK -
> 
> having gotten past all of the applet stuff, I'm still trying to simply open
> up the XML File. I'm sure once I get that far, I'll be fine, since I've
> enough experience dealing with XML.  Now I'm getting this error:
> 
> Exception occurred during event dispatching:
> java.lang.NoClassDefFoundError: java/util/LinkedList
>  at org/jdom/Document.<init> (Document.java:117)
>  at org/jdom/Document.<init> (Document.java:135)
>  at org/jdom/input/SAXBuilder.build (SAXBuilder.java:257)
>  at org/jdom/input/SAXBuilder.build (SAXBuilder.java:464)
>  at org/jdom/input/SAXBuilder.build (SAXBuilder.java:445)
> 
> from this code:
> 
>      SAXBuilder saxBuilder = new SAXBuilder();
>      Document xmlDoc = saxBuilder.build(new File("C:\\contacts.xml"));
>      //System.out.println(xmlDoc.toString());
> 
> with these imports:
> 
> import java.net.*;
> import java.io.*;
> import java.util.*;  <-------
> 
> import org.jdom.Document;
> import org.jdom.Element;
> import org.jdom.JDOMException;
> import org.jdom.input.SAXBuilder;
> import org.jdom.output.XMLOutputter;
> 
> is this another pathing thing? I'd be inclined to think so since it's a
> similar error to before (compiles OK, doesn't run), but for the life of me I
> can't find which .jar or path I need to have included in the classpath.  Can
> you help me again?
> 
> -J



More information about the jdom-interest mailing list