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

后端 未结 2 1022
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 01:04

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

java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
at jav         


        
相关标签:
2条回答
  • 2020-12-11 01:51

    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>
    
    0 讨论(0)
  • 2020-12-11 01:52

    You need xml-apis. Have a look at this:http://www.coderanch.com/t/534171/XML/org-dom-ElementTraversal

    0 讨论(0)
提交回复
热议问题