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

后端 未结 8 852
后悔当初
后悔当初 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条回答
  •  自闭症患者
    2020-12-24 06:15

    Since you imported the project as a General Project, it does not have the java nature and that is the problem.

    Add the below lines in the .project file of your workspace and refresh.

    
          org.eclipse.jdt.core.javanature
    
    

提交回复
热议问题