Eclipse compilation error: The hierarchy of the type 'Class name' is inconsistent

后端 未结 23 2678
遥遥无期
遥遥无期 2020-12-04 15:53

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 inc

23条回答
  •  执念已碎
    2020-12-04 16:48

    Check your errors (tab "markers"). I had also the following error:

    Archive for required library in project cannot be read...

    and when that was fixed the "inconsistent-error" disappeared.

    Actually I had added jars to the build path, but for some reason they could not be read with error

    Archive for required library in project cannot be read or is not a valid ZIP file

    So instead I added them as "External Jars". That helped and all compilation problems were no more!

提交回复
热议问题