使用dom4j时SelectNodes()方法报错

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.selectNodes(AbstractNode.java:164)

上边就是错误提示信息,解决方案就是下载一个jaxen.jar包,然后导入即可。

来源-- 作者 ZH奶酪

源地址 http://www.cnblogs.com/CheeseZH/archive/2012/11/28/2791903.html 

posted @ 2013-08-26 10:39  令狐冲之12  阅读(392)  评论(0)    收藏  举报