Home > OS >  eclipse loading src folder weirdly
eclipse loading src folder weirdly

Time:03-04

I am using git with fellow student, now I've noticed that if I load a branch of another student it imports the src folder weirdly.

enter image description here

what could be the problem?

CodePudding user response:

Eclipse is not recognizing your src directory as a source folder, and therefore not displaying the underlying directories as packages.

You need to define the source folders in your project, typically src/main/java and src/test/java (Maven convention).

If someone else's branch uses different source folders than you, then you get this problem when you switch. It might be useful to either follow the same project structure if you work together, or use separate Eclipse projects.

  • Related