Can't remove jar from Web App Library

15,607

Solution 1

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.

Solution 2

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

Solution 3

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.

Share:
15,607
AllieCat
Author by

AllieCat

Engineer. Violinist. Black belt. World of Warcraft shadow priest.

Updated on June 23, 2022

Comments

  • AllieCat
    AllieCat almost 2 years

    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

  • AllieCat
    AllieCat almost 11 years
    When I click on Edit, I only have one option (my project) and then can only click Finish. When I do that, nothing changes.
  • Vikas V
    Vikas V almost 11 years
    @AllieCat I have edited my answer with link to a guide on Web App libraries. That link might help you..
  • Jason Krs
    Jason Krs over 6 years
    Thanks. It helped me
  • Drumnbass
    Drumnbass about 6 years
    that delete button is also disabled.