'Eclipse import from git not recognizing source folders

I wanted to share a Java project with another computer. I went on the first computer and created a GitHub repo out of it by clicking Team -> Share Project -> Create -> Finish. Then, I went to the other computer and clicked Import -> Projects from Git -> pasted in the GitHub link -> next, next, next. But when I opened the project, all the packages were like src.foo and src.bar. It didn't recognize the "src" folder was a source folder. Did I do one of these steps wrong?



Solution 1:[1]

My suggestion is:

  1. Create an empty folder in your workspace;
  2. In the Terminal, execute the command git clone ;
  3. In the Terminal, move to your project folder: cd folder-name;
  4. Open Eclipse;
  5. Import the project;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Iury Salino