10

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

4

4 回答 4

12

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.

于 2013-06-24T16:53:03.580 回答
7

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

于 2013-06-24T17:07:34.220 回答
5

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.

于 2014-07-01T10:49:57.890 回答
0

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.

于 2021-09-14T11:27:11.523 回答