Eclipse 文件夹引用的库消失了

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/134338/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:25:47  来源:igfitidea点击:

Eclipse folder Referenced Libraries disappears

eclipse

提问by Benno Richters

In Java projects in Eclipse version 3.4.1 sometimes the folder "Referenced Libraries" disappears from the "Project Explorer" view. All third party jars are shown directly in the root of the project folder. The project compiles and runs fine. It seems to be a GUI problem.

在 Eclipse 3.4.1 版的 Java 项目中,有时文件夹“Referenced Libraries”从“Project Explorer”视图中消失。所有第三方 jar 都直接显示在项目文件夹的根目录中。该项目编译并运行良好。这似乎是一个 GUI 问题。

How can I get this folder back?

我怎样才能找回这个文件夹?

回答by Jon Schneider

First, bring up the "Package Explorer" view (instead of the "Project Explorer" view).

首先,打开“Package Explorer”视图(而不是“Project Explorer”视图)。

Then, if the referenced .jar files still are visible in the root of the project, click on the little "down arrow" icon in the top-right corner of the Package Explorer view. In the context menu that appears, one of the items on the menu is "Show 'Referenced Libraries' Node." Click on that menu item.

然后,如果引用的 .jar 文件在项目的根目录中仍然可见,请单击 Package Explorer 视图右上角的小“向下箭头”图标。在出现的上下文菜单中,菜单上的一项是“显示'参考库'节点”。单击该菜单项。

回答by user219882

I've been struggling with this thing for a while in Eclipse Junobecause it's a little bit different.

我在Eclipse Juno 中一直在为这件事苦苦挣扎,因为它有点不同。

  • click the little down arrowas before
  • click Customize view
  • check Libraries from external
  • down arrow像以前一样点击小
  • 点击 Customize view
  • 查看 Libraries from external

回答by Zoomzoom

For those hitting the issue today (Kepler): it is possible that you are in the "Java EE" perspective, which by default has the Project Explorer. Simply switch to the "Java" perspective and it will replace Project Explorer with Package Explorer, which will have the missing Referenced Libraries folder.

对于今天遇到这个问题的人 (Kepler):您可能处于“Java EE”透视图中,默认情况下它具有 Project Explorer。只需切换到“Java”透视图,它就会用包资源管理器替换项目资源管理器,后者将包含缺少的引用库文件夹。

回答by Andrew

Make sure you're actually in Project Explorer and not in some other view like Navigator, like my friend was...

确保您实际上是在项目资源管理器中,而不是在导航器之类的其他视图中,就像我的朋友一样......

回答by Prabhu

Use the Package Explorer view instead of the Project Explorer view.

使用 Package Explorer 视图而不是 Project Explorer 视图。