Question

How can I remove the jars in my Web App Library?

I manually added a couple jars to the web app library. My program is now pitching a fit so I clearly need to remove them.

However, when I go to the Build Path, the "Remove" is greyed out. enter image description here

Was it helpful?

Solution

A project's Web App Library is composed automatically by Eclipse from any JARs on the project path, <project-name>/WebContent/WEB-INF/lib. JARs reach that location:

  1. after the project is created (of course, since the project file system begins to exist only then)
  2. by the user's hand.

So, you can edit the Web App library by adding / deleting jars under WEB-INF/lib folder.

More details on Web App libraries can be found here.

OTHER TIPS

I figured it out - sorry to bother everyone.

Go to the jar in the Project Explorer, right click and Delete.

Deleting jar in Web App Library

After delete some libs, delete Webapp libs in Build Path then close and open Eclipse, add Webapp Libs in Build Path again. Worked for me.

What worked for me was, I was trying to delete the JARs from Build Path, which I accessed through 'Project Explorer' tab. But the JARs delete option is greyed out there, as per the original question.

So I tried the same from : 'Navigator' perspective (which is deprecated). When I went to my projects build path from here, I could see the delete option.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top