I encountered a problem when I learned to parse XML using XPath technology today:
Exception in thread "Main" Java. Lang. noclassdeffounderror: ORG/jaxen/basexpath
At java. Lang. Class. forname0 (native method)
At java. Lang. Class. forname (unknown source)
At org. JDOM. XPath. XPath. newinstance (XPath. Java: 126)
At com. Shi. JDOM. XPath. readjdom (XPath. Java: 30)
At com. Shi. JDOM. XPath. Main (XPath. Java: 45)
When looking at JDOM, we said that JDOM. Jar fully supports XPath, so we didn't consider the package issue. However, after trying to change the value, it still does not help. No reason can be said on the online forum,
Then we can see the answer to a question using dom4j. A jaxen jar package is required.
Download:
Jaxen-1.1-beta-6.jar (238.6 KB) (http://download.csdn.net/source/2485497)
Jdom-1.0.jar (http://download.csdn.net/source/2485483) (144.93kb)