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

后端 未结 13 1383
栀梦
栀梦 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:11

    In my case the source folder wasn't specified correctly. To solve the problem :

    • Right click on project name in project explorer
    • Select Properties
    • Select Java Build Path
    • Select Source tab and inspect what is there. Make sure to Add Folder... and select the folder which is the root of your source files.

    As a result, you will notice that your folder structure in the project explorer will be modified to display package icons and package names instead.

    0 讨论(0)
提交回复
热议问题