java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI

Sashi Kant picture Sashi Kant · Nov 28, 2012 · Viewed 15.3k times · Source

I am executing a class in eclipse through main, and as I result I am getting this error

java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI

I am using jRE6.

Please help me in solving this

Answer

Kevin Bowersox picture Kevin Bowersox · Nov 28, 2012

Make sure you have xalan-2.7.1.jar on your build path.

http://mirrors.ibiblio.org/pub/mirrors/maven2/xalan/xalan/2.7.1/xalan-2.7.1.jar