I am trying to \"import existing project into workspace\". As the \"root directory\" I select the directory where all my .java (and .class) files are located. Eclipse writes
Reason : your ID is not able to find the .project file. This happens in git commit where many time people don't push .project file
Solution : If you have maven install then use following stapes
Enjoy!