Java 从 Eclipse 的项目资源管理器视图中删除项目 .jars
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/672990/
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
Remove project .jars from project explorer view in Eclipse
提问by flybywire
The list of jars just takes up too much space. Can I collapse it or hide it?
罐子列表占用了太多空间。我可以折叠或隐藏它吗?
采纳答案by WiseTechi
回答by topchef
I believe that Eclipse 3.4.2 places jars under "Referenced Libraries" node which is collpasable. What version do you use?
我相信 Eclipse 3.4.2 将 jars 放置在可折叠的“参考库”节点下。你用的是什么版本?
回答by WL.
In Eclipse3.5, select the filter "libraries from external" in "customize view".
在Eclipse3.5中,在“customize view”中选择过滤器“libraries from external”。
回答by Arnab
Go the library Tab of Java Build Path, Add Variable (add a variable name and library folder location).
转到 Java 构建路径的库选项卡,添加变量(添加变量名称和库文件夹位置)。
Once the variable is added, click on extend, you will see all the jars. Select all of them (or whatever is needed) and click ok. Exit the build path dialog box by clicking ok.
添加变量后,单击扩展,您将看到所有 jar。选择所有这些(或任何需要的)并单击确定。单击确定退出构建路径对话框。
This will remove all the jars from your project view.
这将从您的项目视图中删除所有 jar。
回答by rayshi02
In Eclipse3.5
在 Eclipse3.5 中
- Go to Configure Build Path. Select the Library Tab
- Remove any library jar files you want to hide
- Use Add External Jar option to add the Jar file back
- select the filter "libraries from external" in "customize view".
- 转到配置构建路径。选择库选项卡
- 删除要隐藏的所有库 jar 文件
- 使用添加外部 Jar 选项将 Jar 文件添加回来
- 在“自定义视图”中选择过滤器“来自外部的库”。
回答by Josema
Another solution would be using the Package Explorer view.
另一种解决方案是使用 Package Explorer 视图。
回答by Gopi Kancharla
Project Explorer > [Down Arrow Icon] > Customize View > Choose the options which you want to exclude to see in the explorer
项目资源管理器 > [向下箭头图标] > 自定义视图 > 选择要在资源管理器中排除的选项
回答by Vasil Lukach
In Eclipse 3.7
在 Eclipse 3.7 中
- open view menu (arrow down icon in right section of title) of Project Explorer
- select Customize View menu item
- in Available Customization window on Filters tab check Library from external and click OK
- 打开 Project Explorer 的视图菜单(标题右侧的向下箭头图标)
- 选择自定义视图菜单项
- 在“过滤器”选项卡上的“可用自定义”窗口中,选中来自外部的库,然后单击“确定”
回答by Jakob O.
Works for eclipse 3 and 4 in the project explorer and package explorer views.
适用于项目浏览器和包浏览器视图中的 eclipse 3 和 4。
Hey here is how it works:
嘿这是它的工作原理:
- Drop down on the ceiling -> Customize View... -> Filters tick "Libraries from external"
- Right click on the project -> Properties -> Java Build Path -> Remove all jars -> Add EXTERNAL jars -> add all jars
- 在天花板上下拉 -> 自定义视图... -> 过滤器勾选“来自外部的库”
- 右键项目->属性->Java构建路径->删除所有jars->添加EXTERNAL jars->添加所有jars
There you go.
你去吧。
回答by user2587271
On Juno, see the "View menu" button on the left of the Project Explorer minimize button. Develop the menu and select the "Customize view" option. In the Filter tab, check the "Libraries from external" option. That's all.
在 Juno 上,查看 Project Explorer 最小化按钮左侧的“查看菜单”按钮。开发菜单并选择“自定义视图”选项。在过滤器选项卡中,选中“来自外部的库”选项。就这样。