Issue
I wanted to import a file which was originally not imported into the source folder in Eclipse
What I did was:
I tried placing the file directory into a source file folder, which obviously did not work.
Then I right-clicked on
folder->import->File System
and tried to import that file, but eclipse then complainsSource is in the hierarchy of destination
.
What I did in the end was move the source file out of that folder, then import it back in from a different path, which I find really redundant.
What's the best way to include a file like that? Thanks in advance.
Solution
you can not import into the same folder bcz no OS allow to create multiple folder of the same name in same parent. instead, you put the folder being imported somewhere else, and while importing it to workspace, check the option to "copy into workspace"
Answered By - Ankit