This compilation unit is not on the build path of a Java project

后端 未结 8 826
后悔当初
后悔当初 2020-12-24 05:39

When I try to use ctrl+space this error is shown:

This compilation unit is not on the build path of a Java project.

I see tha

8条回答
  •  旧时难觅i
    2020-12-24 05:53

    If it is a Maven project then sometimes re-importing of it helps:

    1. Right-click the project in the Project Explorer and choose Delete.
    2. File > Import... > Maven > Existing Maven Projects > Next > Root Directory > Browse your project from Disk.

    Hope it will resolve the issue.

提交回复
热议问题