动态 Web 项目库

发布于 2024-12-18 21:26:24 字数 418 浏览 6 评论 0原文

在我的时区早上好。

我已将一个动态 Web 项目导入到我的 Eclipse 中。我已经下载了Tomcat服务器。 如果我在没有任何 IDE 的情况下工作,我知道我们在项目中使用的每个库都必须位于 tomcat 的 lib 文件夹内。

文件夹结构:Tomcat\webapps\WEB-INF\lib

我的问题是,如果我需要一个库(*.jar),我应该将其直接放在 lib 文件夹中,还是应该在构建路径中配置,将其添加到库选项卡中?

第二个问题,我的项目 Steels 在项目名称上方有红十字,但我看不到错误在哪里,在 src 文件夹中没有类有任何错误,并且在 Web Content 文件夹中没有任何十字,所以我该怎么办知道问题出在哪里吗?

提前致谢。 向开发者社区致以最诚挚的问候。

Good morning in my timezone.

I have imported one Dynamic web project to my eclipse. I have downloaded the Tomcat server.
If I work without any IDE, I know that every libraries that we use in the project must be inside the lib folder in tomcat.

Folder structure : Tomcat\webapps\WEB-INF\lib

My question is, if I need a library (*.jar) should I put it directly in the lib folder or should I configure in the build path, adding it in the libraries tab?

Second question, my project steels have the red cross above the project name, but I do not see where the error is, in the src folder no class have any error and inside the Web Content folder there is not any cross, so how can I know where the problem is?

Thanks in advance.
Best regards developer community.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯淡〆 2024-12-25 21:26:24
  1. 不需要任何配置,只需将它们复制到 lib 文件夹中即可。
  2. 确保您已设置正确的 jdk 和服务器库。右键单击项目 ->构建路径->配置->库。如果没有tomcat运行库,你应该添加它。(我假设tomcat嵌入在eclipse中。如果没有,右键单击服务器(控制台旁边)并添加tomcat服务器。)
  1. There shouldn't be any need for configuration, just copy them in the lib folder.
  2. Make sure you have set the right jdk and the server libraries. right click on project -> build path -> configure -> libraries. if there is no tomcat runtime lib, you should add it.(I assume tomcat is embedded in eclipse. If not, right click on servers(next to console) and add the tomcat server.)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文