Web Application Libraries Empty in Eclipse - "jars" Not Found

Recently, my Java Spring MVC Java application developed by Eclipse Indigo seems to have lost its connection to my "lib" folder, where all my banks are (there were no more tanks found for my project).

How to fix it?

+6
source share
2 answers

For me, the fix was simple:

  • Go to the Eclipse menu: Project | Real Estate | Project boundaries
  • Make sure Java and Dynamic Web Project are selected.
  • Click OK

You may also need to do this:

  • Go to the Eclipse menu: Project | Real Estate | Java Build Path | Libraries
  • Delete Web Application Libraries
  • Click Add Library
  • Select "Web Application Library." Click "Next"
  • Select a project from the drop-down list.
  • Click OK
+14
source

For me, Brad Parks answer did not work in Eclipse Luna (4.4.2), that is, adding web application libraries did not have any effect .. that remained empty.

I needed to configure the web deployment assembly . My library was in WEB-INF, which again looked like /{project}/web/WEB-INF/lib , and when I added the deployment assembly , as shown below,

enter image description here

Then under these two I had an entry for each jar from the {project}/web/WEB-INF/lib with Deploy Path as WEB-INF/lib .

This deployment assembly automatically populated my Web App Libraries .

0
source

Source: https://habr.com/ru/post/917639/


All Articles