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

后端 未结 8 815
后悔当初
后悔当初 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:01

    Another alternative to Loganathan Mohanraj's solution (which effectively does the same, but from the GUI):

    1. Right-Click on your project
    2. Go to "Properties"
    3. Choose "Project Natures"
    4. Click on "Add"
    5. Choose "Java"
    6. Click "Apply and Close"

提交回复
热议问题