xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
[XOM-interest] NoClassDefFoundError nu/xom/Element
- From: Rajesh Menon <prm225 AT gmail.com>
- To: xom-interest AT lists.ibiblio.org
- Subject: [XOM-interest] NoClassDefFoundError nu/xom/Element
- Date: Thu, 06 Mar 2008 15:51:21 -0500
Hi,
I came across this issue from a while ago - http://cafe.elharo.com/blogroll/eclipse-classpath-insanity/ - but I'm not using Eclipse. Does anyone know how to resolve this?
Thanks.
$ cat Test.java
import nu.xom.Document;
import nu.xom.Element;
public class Test
{
public static void main (String args[])
{
System.out.println (args[0] + ", " + args[1]);
Element root = new Element ("root");
root.appendChild ("hello world");
Document doc = new Document (root);
String result = doc.toXML();
System.out.println (result);
}
}
$ javac -classpath ~/src/scm/xom/build/xom-1.2b2.jar Test.java
$ java Test foo bar
foo, bar
Exception in thread "main" java.lang.NoClassDefFoundError: nu/xom/Element
at Test.main(Test.java:10)
$ java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)
--
Rajesh Menon
-
[XOM-interest] NoClassDefFoundError nu/xom/Element,
Rajesh Menon, 03/06/2008
-
Re: [XOM-interest] NoClassDefFoundError nu/xom/Element,
Asgeir Frimannsson, 03/07/2008
- Re: [XOM-interest] NoClassDefFoundError nu/xom/Element, Rajesh Menon, 03/07/2008
-
Re: [XOM-interest] NoClassDefFoundError nu/xom/Element,
Asgeir Frimannsson, 03/07/2008
Archive powered by MHonArc 2.6.24.