Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 977
AllieCat Avatar asked Jun 24 '13 16:06

AllieCat


People also ask

How to remove jar file from classpath?

Select Project in Project Explorer and Press "Alt+Enter" then Go to Java Build path and select Libraries then select jar file finally click on Remove button. select jar in the Project tree-view and right click on it and select Build Path then in select the Remove from Build Path . You are done.

Can I delete jar files?

From the left navigation pane, select JARs from under Resource Browser. The Summary of JARs page is displayed. In the Options field of the JAR you want to delete, click the Delete icon.

Can I delete .classpath file?

To delete an existing class path variable: From the menu bar, select Window > Preferences. Expand the Java category in the left pane, and select Classpath Variables. Select the variable(s) you want to delete in the Defined class path variables list and click the Remove button.


3 Answers

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.

like image 61
Bruno Freitas Avatar answered Oct 21 '22 18:10

Bruno Freitas


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.

like image 40
Vikas V Avatar answered Oct 21 '22 18:10

Vikas V


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

like image 35
AllieCat Avatar answered Oct 21 '22 17:10

AllieCat