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?
Close and re-open the project without closing eclipse, this might rebuild Eclipse resource cache. Make a clean build after re-opening. Re-import your project into a clean workspace.
Why referenced Libraries Eclipse not showing? First, bring up the "Package Explorer" view (instead of the "Project Explorer" view). Then, if the referenced . jar files still are visible in the root of the project, click on the little "down arrow" icon in the top-right corner of the Package Explorer view.
To get started, open the "Preferences" window in Eclipse. Navigate to "Java » Build Path » User Libraries" on the left-hand side and click the "New" button. Enter the library name and click the "OK" button (leave the "System library" checkbox alone).
For me, Brad Parks's answer didn't worked in Eclipse Luna ( 4.4.2 ) i.e. Adding Web App Libraries had no effect ..that remained empty.
What I had to is to configure Web Deployment Assembly ...My lib was in WEB-INF which was again like - /{project}/web/WEB-INF/lib
and when I added a Deployment Assembly entry like shown below ,
Then below these two I had an entry for every jar from {project}/web/WEB-INF/lib
directory with Deploy Path as WEB-INF/lib
.
This Deployment Assembly automatically populated my Web App Libraries
.
For me, the fix was simple:
You may need to also do this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With