Skip to content
Advertisement

Can’t remove jar from Web App Library

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

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement