类加载中的 java.lang.LinkageError 错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6841769/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 17:32:20  来源:igfitidea点击:

java.lang.LinkageError Error in Class Loading

javaclassloader

提问by pedr0

I have some problem with my JSystem/Java/Eclipse enviromment.

我的 JSystem/Java/Eclipse 环境有问题。

I get this error and i don't understand what is wrong:

我收到此错误,我不明白出了什么问题:

java.lang.LinkageError: loader constraint violation: loader (instance of jsystem/runner/loader/ExtendsTestCaseClassLoader) previously initiated loading for a different type with name "org/w3c/dom/Document"

I would like know if someone have had a similar issues, I don't think my enviromment is very important for solve it, if I will understand what's happened "undergound" I hope to solve problem myself.

我想知道是否有人遇到过类似的问题,我不认为我的环境对解决它很重要,如果我能理解“地下”发生了什么,我希望自己解决问题。

Thanks a lot in advance.

非常感谢。

回答by dacwe

I think this happened for me when I included a library twice.

我认为当我两次包含一个库时,这对我来说发生了。