eclipse 无法从 Web 应用程序库中删除 jar
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17280728/
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
Can't remove jar from Web App Library
提问by AllieCat
How can I remove the jars in my Web App Library?
如何删除 Web 应用程序库中的 jars?
I manually added a couple jars to the web app library. My program is now pitching a fit so I clearly need to remove them.
我手动向 Web 应用程序库添加了几个 jar。我的程序现在正在适应,所以我显然需要删除它们。
However, when I go to the Build Path, the "Remove" is greyed out.
但是,当我转到构建路径时,“删除”是灰色的。
回答by Vikas V
A project's Web App Library is composed automatically by Eclipse from any JARs on the project path, <project-name>/WebContent/WEB-INF/lib
. JARs reach that location:
项目的 Web 应用程序库由 Eclipse 从项目路径上的任何 JAR 自动组成,<project-name>/WebContent/WEB-INF/lib
. JAR 到达该位置:
- after the project is created (of course, since the project file system begins to exist only then)
- by the user's hand.
- 项目创建后(当然,因为项目文件系统才开始存在)
- 由用户的手。
So, you can edit the Web App library by adding / deleting jars under WEB-INF/lib
folder.
因此,您可以通过在WEB-INF/lib
文件夹下添加/删除 jar 来编辑 Web App 库。
More details on Web App librariescan be found here.
可以在此处找到有关Web 应用程序库的更多详细信息。
回答by AllieCat
I figured it out - sorry to bother everyone.
我想通了 - 抱歉打扰大家。
Go to the jar in the Project Explorer, right click and Delete.
转到 Project Explorer 中的 jar,右键单击并删除。
回答by Bruno Freitas
After delete some libs, delete Webapp libs in Build Path then close and open Eclipse, add Webapp Libs in Build Path again. Worked for me.
删除一些libs后,在Build Path中删除Webapp libs然后关闭并打开Eclipse,再次在Build Path中添加Webapp Libs。对我来说有效。