Jars Simultaneously In All Projects in Eclipse

How to replace/ add JARs simultaneously to all projects in Eclipse:

I did not know then, but now I know. I used (USED) to add external jars to my individual projects. Then when I had to move them or import (say 20 projects), adding jars became a pain. Then one day my co-worker Alex asked me about the same issue and I thought that there must be a way to do this … I mean there is so much legacy stuff out there … everyone must be either facing this problem or must be working with a solution … Googled and found trillion suggestions!! But this was the best (in my opinion) – simple easy quick and efficient … This process is more about habit/ process than a quick fix, but worked as a charm for me.

a.      Open eclipse go to windows->preferences->java->build path->user library
b.      Click on "New" and give the library a name (for eg."customLibrary")
c.      Select the option "System library (added to the boot class path)" and hit "Ok"
d.      Add this "customLibrary" to the project just like you add and external jar
e.    Now all you have to do is keep on adding/ updating the jars in "customLibrary" and all projects will get updated appropriately. Yipeeee!!

No comments:

Post a Comment