Eclipse: The resource is not on the build path of a Java project

后端 未结 13 1560
栀梦
栀梦 2020-12-04 17:23

I have been given a Source Folder (src) of a Java Project. I have created a .project file, kept it inside that folder and imported that Project int

13条回答
  •  一生所求
    2020-12-04 18:05

    Using Eclipse Oxygen with a multimodule maven project make sure you're not editing the file in the maven parent project.

    This caused the "Open Declaration', 'Open Type Hierarchy' and 'Open Call Hierarchy' to show the dreaded dialog in question. It would even mess with the autocomplete.

    Make sure you are not editing the parent project and instead edit the child project to avoid the error.

提交回复
热议问题