Can't remove jar from Web App Library

AllieCat picture AllieCat · Jun 24, 2013 · Viewed 14.7k times · Source

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

Answer

Vikas V picture Vikas V · Jun 24, 2013

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.