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

Jake Latham jlatham at rockysoft.com
Mon Jul 2 10:00:52 PDT 2001


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