4

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

Sashi Kant
  • 13,277
  • 9
  • 44
  • 71

2 Answers2

9

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

Kevin Bowersox
  • 93,289
  • 19
  • 159
  • 189
3

You must add the apache xpath library to your class path.

Olaf Dietsche
  • 72,253
  • 8
  • 102
  • 198