Eclipse package explorer empty

依然范特西╮ 提交于 2019-12-01 16:40:05

问题


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


来源:https://stackoverflow.com/questions/13992661/eclipse-package-explorer-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!