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
In my case the source folder wasn't specified correctly. To solve the problem :
Properties
Java Build Path
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.