Eclipse “this compilation unit is not on the build path of a java project”

前端 未结 24 2906
故里飘歌
故里飘歌 2020-12-08 03:41

I can\'t get autocompletion to work on Eclipse.

I\'m working on the project on svn. I set up project in Eclipse by going into

File -> Import -> Checkout As

24条回答
  •  时光说笑
    2020-12-08 04:27

    Your source files should be in a structure with a 'package' icon in the Package Explorer view (in the menu under Window > Show View > Package Explorer or press Ctrl+3 and type pack), like this:

    If they are not, select the folder containing your root package (src in the image above) and select Use as Source Folder from the context menu (right click).

提交回复
热议问题