Eclipse java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13840989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
提问by Aravindhan
I am using eclipse juno.. when i opening javascript file in eclipse it returns the error
我正在使用 eclipse juno .. 当我在 eclipse 中打开 javascript 文件时它返回错误
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..
我怎样才能克服这个..
回答by Kenny Cason
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.
我在尝试使用 version 时遇到了问题2.0.2
,但发现当我恢复到 version1.4.01
并且一切都再次正常时。
If you're using Maven:
如果您使用的是 Maven:
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
</dependency>
回答by Biao
You need xml-apis. Have a look at this:http://www.coderanch.com/t/534171/XML/org-dom-ElementTraversal
你需要xml-apis。看看这个:http: //www.coderanch.com/t/534171/XML/org-dom-ElementTraversal