Delete / add jar to all projects in the eclipse workspace

I recently updated the framework that I am developing, and one of the cans of the old installation was updated to a newer version (i.e. the flag name is different).

All (200+) projects in my workspace are dependent on this jar and therefore now display the following two errors:

  • "The required library is missing from the Blah project."
  • "A project cannot be created until errors in the build path are resolved."

It will take me a considerable amount of time to change the build path of each project in my workspace, first deleting the wrong jar and then adding a new one.

Is there a way to add / remove a jar for all (or a group) of projects at a time?

This question illustrates adding banners using libraries - something that I might use in the future, but did not fix my current problem.

I am running Eclipse Mars 4.5.0

+4
source share
2 answers

On the back of Chandrayya GK's answer, I found a simple solution to solve my problem that is not related to creating additional projects, etc. - Just find and replace the link to the jar on the way to the classes.

Within the eclipse, press Ctrl+ Hto open the search window.

enter image description here

Click the File Search tab

" :" classpathentry, . .classpath eclipse. :

<classpathentry kind="lib" path="C:/myjars/old-jar.jar"/>

.classpath " ", .

.

""

"" classpathentry, .

enter image description here

"".

* , , </classpath> <classpathentry kind="lib" path="C:/myjars/new-jar.jar"/> </classpath>, .

+3

, . , ( test1). lib . , . enter image description here


. ?

.classpath . .

Ctrl + H.

"</classpath> " " ".

" ".

"Filename patterns" ".classpath"

.

" ".

. "" " ".

Ctrl Shift / . , test1.

" ". , .

enter image description here

: Java. , .


test1. . , , . , , .

enter image description here

+1

Source: https://habr.com/ru/post/1609461/


All Articles