Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal

Tags:

eclipse

I am using eclipse juno.. when i opening javascript file in eclipse it returns the error

java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)

how can i overcome this..

like image 513
Aravindhan Avatar asked Dec 12 '12 13:12

Aravindhan


1 Answers

I had an issue when I tried using version 2.0.2, but found that when I reverted back to version 1.4.01 and everything worked again.

If you're using Maven:

<dependency> 
    <groupId>xml-apis</groupId>
    <artifactId>xml-apis</artifactId>
    <version>1.4.01</version>
</dependency>
like image 124
Kenny Cason Avatar answered Dec 21 '22 21:12

Kenny Cason