Eclipse编译错误:类“类名”的层次结构不一致 [英] Eclipse compilation error: The hierarchy of the type 'Class name' is inconsistent
本文介绍了Eclipse编译错误:类“类名”的层次结构不一致的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到错误:某些文件中类别类名称的层次结构不一致。
什么原因导致这些错误,如何修复?
解决方案
现有的界面,或者是扩展一个不存在的类。
尝试刷新Eclipse。
如果它不起作用,这可能意味着您有一个不在构建路径中的JAR的引用。
检查项目的类路径并验证包含接口或类的jar在其中。
I have downloaded some open source software written in Java and tried to compile it using Eclipse. I got the error: "The hierarchy of the type 'Class name' is inconsistent" in some files. What causes these errors and how do I fix them?
解决方案
It means you are trying to implement a non-existing interface or you're extending an non-existing class.
Try to refresh your Eclipse.
If it doesn't work, it may mean that you have a reference to a JAR that is not in the build path. Check your project's classpath and verify that the jar containing the interface or the class is in it.
这篇关于Eclipse编译错误:类“类名”的层次结构不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文