Eclipse package explorer empty

2019-02-21 22:30发布

问题:

I'm new to Eclipse, and I can't seem to get the package explorer to cooperate. Here is my current file tree:

└───workspace
    ├───bin
    │   └───var
    ├───res
    │   └───gui
    └───src
        └───var
            └───all of my source code

I attempted to start a workspace in the current tree, \workspace, \workspace\src, and workspace\src\var. All resulted in an empty package explorer. I have tried Eclipse Indigo, Juno, Classic Indigo, and Classic Juno, with no success. Can anyone offer help?

回答1:

Maybe a little late, but i found a solution to this problem! Just right click on the explorer, select import, then in general select Existing project into workspace then find the root folder of your project and it should import it just fine. Well, worked for me anyways ;)



回答2:

  1. Rightclick on your Project
  2. select 'Properties'
  3. 'Java Build Path'
  4. select tab 'Source'
  5. Button 'Add Folder'
  6. add your source folder / all your source folders