Eclipse- How to remove jars which are added "from class path" of referenced library

Rilwan picture Rilwan · May 18, 2016 · Viewed 36.7k times · Source

I use eclipse. I just added two jars into my project as library >Add external jar . As in below picture, all other jars in the folder are coming to my project as referenced library. How to remove this. Are these really required ? After I compiled, the app jar file size is much bigger than I expected.

enter image description here

tool tip shows-from class path of .jar

enter image description here

Answer

Mihir picture Mihir · May 18, 2016

To remove a library reference from the project classpath, follow this procedure:

1.Right-click on the project in the Project Explorer view and select Properties from the drop-down menu.This will open the Propertis dialog.

2.On the Propertis dialog, select the Java Build Path from the list of properties.

3.On the Java Build Path part of the dialog, select the Libraries tab.

4.Find the entry in the list of libraries called Shared Library [], and then select it.

5.Click Remove.