Eclipse package explorer empty

2019-02-21 22:28发布

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?

2条回答
乱世女痞
2楼-- · 2019-02-21 23:00

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 ;)

查看更多
贪生不怕死
3楼-- · 2019-02-21 23:20
  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
查看更多
登录 后发表回答