本帖最后由 yting_xmei1129 于 2013-9-21 20:03 编辑
使用 dom4j读取xml文件,程序运行的时候会报这样一个异常,到底是为什呢?知道的告诉下小弟,谢谢了- Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenException
- at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
- at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
- at org.dom4j.tree.AbstractNode.selectSingleNode(AbstractNode.java:183)
- at com.yting.dom4j.Dom4jQuestion.dom4jReadAttrByXpath(Dom4jQuestion.java:43)
- at com.yting.dom4j.Dom4jQuestion.main(Dom4jQuestion.java:15)
- Caused by: java.lang.ClassNotFoundException: org.jaxen.JaxenException
- at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
- ... 5 more
复制代码 |