Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

xalan

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

like image 714
Sashi Kant Avatar asked Dec 16 '22 16:12

Sashi Kant


2 Answers

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

like image 132
Kevin Bowersox Avatar answered Dec 29 '22 03:12

Kevin Bowersox


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

like image 44
Olaf Dietsche Avatar answered Dec 29 '22 04:12

Olaf Dietsche