Web应用程序库在Eclipse中为空 - 否“jar”发现 [英] Web App Libraries empty in Eclipse - no "jars" found

查看:153
本文介绍了Web应用程序库在Eclipse中为空 - 否“jar”发现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我在Eclipse Indigo开发的Spring MVC Java应用程序似乎失去了与我的所有jar的lib文件夹的连接(没有找到我的项目的jar)。



如何解决这个问题?

解决方案

修复很简单:




  • 在Eclipse菜单中进入:项目|属性|项目方面

  • 确保选择Java和动态Web项目

  • 单击确定



您可能还可以这样做:




  • 去这里在Eclipse菜单中:Project |属性| Java构建路径|图书馆

  • 删除Web App Libraries

  • 点击添加图书馆

  • 选择 。单击下一步

  • 在下拉菜单中选择您的项目

  • 单击确定


Recently my Spring MVC Java app, developed in Eclipse Indigo, seemed to lose it's connection to my "lib" folder where all my jars are (there were no jars found for my project anymore).

How do I fix this?

解决方案

For me, the fix was simple:

  • Go here in the Eclipse menu: Project | Properties | Project Facets
  • Ensure "Java" and "Dynamic Web Project" are selected
  • Click OK

You may need to also do this:

  • Go here in the Eclipse menu: Project | Properties | Java Build Path | Libraries
  • Remove "Web App Libraries"
  • Click "Add Library"
  • Choose "Web App Library". Click "Next"
  • Choose your project in the drop down
  • Click OK

这篇关于Web应用程序库在Eclipse中为空 - 否“jar”发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆