You now have to add jaxen to the classpath - no idea why it's not included in 
dom4j.jar anymore

---------- Original Message ----------------------------------
From: "Jonathan V. Phillips" <[EMAIL PROTECTED]>
Date:  Thu, 9 Sep 2004 16:59:48 -0500 (Central Daylight Time)

>Hello,
>
>I'm having problems getting a simple dom4j program to work. I'm 
>running it against dom4j-1.5.jar. Here is the entire program:
>
>----<snip>----
>import org.dom4j.Document;
>import org.dom4j.DocumentHelper;
>
>public class Test {
>   public static void main(String[] args) {
>     try {
>       Document document = DocumentHelper.parseText(
>          "<first><second name=\"foo\"/></first>"
>       );
>       System.out.println("Name is: " +
>                          document.valueOf("//first/second/@name"));
>     }
>     catch (Exception e) {
>       e.printStackTrace();
>     }
>   }
>}
>----<snip>----
>
>Simple enough, right? It compiles fine, but whenever I run it, this is 
>what I get:
>
>>java Test
>Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenException
>         at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:196)
>         at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:205)
>         at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:190)
>         at Test.main(Test.java:10)
>
>I thought jaxen was supposed to be included with dom4j. Am I missing 
>something fundamental here?
>
>-jvp
>
>-------------------------------------------------
>Jonathan V. Phillips        |  [EMAIL PROTECTED]
>Product Development Manager |  tel (812) 456-1238
>Cinergy Communications      |  fax (812) 759-1638
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
>Project Admins to receive an Apple iPod Mini FREE for your judgement on
>who ports your project to Linux PPC the best. Sponsored by IBM. 
>Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
>_______________________________________________
>dom4j-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/dom4j-user
>


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to