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

Robert r. Sanders robert.sanders at ipov.net
Mon Jul 2 11:57:11 PDT 2001


You need to compile the java 1.1 version of JDOM and provide that along with
collections.jar as part of the applet's path.  Or you could require the java
plugin.  Otherwise the browser, with its java 1.1.x JRE will not be able to
find the collection classes.

Robert Sanders

----- Original Message -----
From: "Jake Latham" <jlatham at rockysoft.com>
To: <jdom-interest at jdom.org>
Sent: Monday, July 02, 2001 12:00 PM
Subject: [jdom-interest] More runtime class-finding problems -
java/util/LinkedList ?


> 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"));
>      file://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
>
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
>
>
>





More information about the jdom-interest mailing list