简体   繁体   English

Eclipse包资源管理器为空

[英]Eclipse package explorer empty

I'm new to Eclipse, and I can't seem to get the package explorer to cooperate. 我是Eclipse的新手,我似乎无法让软件包资源管理器合作。 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. 我试图在当前树,\\ workspace,\\ workspace \\ src和workspace \\ src \\ var中启动工作区。 All resulted in an empty package explorer. 所有这些都导致了一个空的包浏览器。 I have tried Eclipse Indigo, Juno, Classic Indigo, and Classic Juno, with no success. 我尝试过Eclipse Indigo,Juno,Classic Indigo和Classic Juno,但没有成功。 Can anyone offer help? 有人可以提供帮助吗?

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 ;) 嗯,反正为我工作;)

  1. Rightclick on your Project 右键单击您的项目
  2. select 'Properties' 选择'属性'
  3. 'Java Build Path' 'Java构建路径'
  4. select tab 'Source' 选择标签'来源'
  5. Button 'Add Folder' 按钮'添加文件夹'
  6. add your source folder / all your source folders 添加源文件夹/所有源文件夹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM