Eclipse Web Tools Platform的Web App Libraries为空的问题

本文介绍了一个常见的Eclipse问题:WebApp项目的“WebApp Libraries”构建路径条目为空的问题及解决方法。该问题表现为无法显示相关联的.jar文件,导致编译器不再包含这些文件在构建路径中。解决步骤包括从构建路径中移除然后重新添加“WebApp Libraries”。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自:

http://www.eclipsezone.com/eclipse/forums/t61235.html

问题:

When I launched Eclipse and opened my web app project, the "Web App
Libraries" Build path entry is empty. In other words, I see three
library icons (I think that's what the picture is) in the Package Explorer:
- JRE System Library
- Tomcat v5.5 runtime
- Web App Libraries
The first two have a little plus sign (disclosure control) to the left
and open up to show many .jar files. The "Web App Libraries" doesn't
have any plus sign or any .jar files associated with it.


All my JAR files haven't moved. They are still in
"WebContent/WEB-INF/lib". However, the Eclipse compiler no longer
includes them on the build path. This was working earlier today.


解决:

I had this too several times. Workaround: remove "Web App Libraries"
from the build path (right click and remove), then add it again: right
click, choose "configure build path", Button "add Library", select "Web
App Libraries" and choose your project.  

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值