简体   繁体   English

Eclipse Java Web项目手册在WEB-INF中设置lib文件夹

[英]Eclipse java web project manual set lib folder in WEB-INF

I checked out a project from svn. 我从svn签出了一个项目。 The project have a folder named as "ws" which contains WebContent folder. 该项目有一个名为“ ws”的文件夹,其中包含WebContent文件夹。 But the lib folder is outside the WebContent folder and under another folder under "ws" folder. 但是lib文件夹在WebContent文件夹之外,在“ ws”文件夹下的另一个文件夹下。 I found out I have to move the lib folder to WEB-INF folder in WebContent folder, so eclipse can find the libraries I need. 我发现我必须将lib文件夹移至WebContent文件夹中的WEB-INF文件夹,以便eclipse可以找到我需要的库。

Would anyone show me how to manually set the path so eclipse can load the libraries from the original lib without moving the lib to WEB-INF? 有人会告诉我如何手动设置路径,以便eclipse可以从原始库加载库,而无需将库移至WEB-INF吗?

Thanks 谢谢

You can edit the Deployment Assembly which controls how the app deployment is assembled. 您可以编辑部署程序集,该程序集控制应用程序部署的组装方式。 Right-click the project and select Properties ; 右键单击该项目,然后选择Properties select Deployment Assembly and then use Add... to include your project's libraries (JARs) in the deployed WEB-INF/lib folder. 选择“ 部署程序集” ,然后使用“ 添加...”将项目的库(JAR)包含在已部署的 WEB-INF/lib文件夹中。

If you've already included the libraries on the project Build Path, there's an option in the Add... dialog to include them directly. 如果您已经将库包含在项目“构建路径”中,则“添加...”对话框中有一个选项可以直接包含它们。 Otherwise you can just add a folder itself. 否则,您可以只添加一个文件夹本身。

在此处输入图片说明

暂无
暂无

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

相关问题 使用 Eclipse 在 JBoss 上部署时 WEB-INF/lib 文件夹消失 - WEB-INF/lib folder disappears when deploying on JBoss with Eclipse 为什么在Eclipse中构建Maven项目后,“WEB-INF / lib”文件夹显示为空? - Why does “WEB-INF/lib” folder appear to be empty after a Maven project is built within Eclipse? Java jar文件正在WEB-INF / lib文件夹中删除 - java jar files are being deleted in the WEB-INF/lib folder 在Eclipse中访问Java项目中WEB-INF下的ftl文件 - Accessing an ftl file under WEB-INF in a Java Project in eclipse 如何让Eclipse自动将我放在WEB-INF / lib文件夹中的jar包含到我的项目中? - How do I make Eclipse automatically include jars I place in my WEB-INF/lib folder into my project? 如何将“ WEB-INF / lib”文件夹移动到Java Dynamic Web App中的子文件夹? - How to move “WEB-INF/lib” folder to a sub folder in a Java Dynamic Web App? 在Eclipse中,如何在WEB-INF / lib文件夹下添加jar文件夹? - In Eclipse, how to add a folder of jars under WEB-INF/lib folder? Eclipse动态Web应用程序将jar文件放在WEB-INF / lib和Java Build Path中 - Eclipse Dynamic Web Application putting jar files in WEB-INF/lib and Java Build Path Eclipse:无法将jar加载到Tomcat WEB-INF / Lib文件夹中? - Eclipse : Unable to load jar's into the Tomcat WEB-INF/Lib folder ? 如何将 JAR 文件添加到 Eclipse 中的 web-inf/lib 文件夹? - How can I add JAR files to the web-inf/lib folder in Eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM