dom4j使用xpath报异常 Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext

Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
     at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230 )
     at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
     at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189 )
     at com.demo.Dom4jTest.main( Dom4jTest.java:30)
Caused by: java.lang.ClassNotFoundException: org.jaxen.NamespaceContext
     at java.net.URLClassLoader$1.run(URLClassLoader.java:366 )
     at java.net.URLClassLoader$1.run(URLClassLoader.java:355 )
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:354 )
     at java.lang.ClassLoader.loadClass(ClassLoader.java:425 )
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:358 )
     ... 4 more
网上搜了一下  说是dom4j引用了jaxen包但项目里面没有,添加jaxen-1.1.6.jar以后问题解决
下载网址http://download.csdn.net/detail/zy_crazy_code/9692242
上一篇:java.lang.NoClassDefFoundError: org/jaxen/JaxenException解决方法


下一篇:[ActionScript 3.0] AS3.0 Socket通信实例