Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy user libraries between workspaces in Eclipse

I was mistaken in thinking that the user libraries I define in one workspace would be available in all and subsequently created workspaces.

So I created a new workspace to organize the myriad of projects, but alas my user-defined libraries did not get replicated in the new ws. I am seeking a way to get my user library defs from the old ws into the new ws.

Is there any good way to hack this? (I've tried researching this but have come up empty handed.)

like image 385
Alexx Avatar asked Feb 24 '11 20:02

Alexx


People also ask

How do I export a user library in Eclipse?

You can share a user library with other developers by exporting your user library to an XMLW file. This XML file can then be imported by other developers. To export a user library, to go Window → Preferences and go to JavaSW → Build Path → User Libraries. Here, click the Export button.

How do I use user library in Eclipse?

Step 1- Open the Eclipse IDE, click on the Window » Preferences. Step 2- From the Preferences window, click on the Java » Build Path » User Libraries. Step 3- Click on the New button and choose a suitable name for your user library, hit the OK button. Step 4- Your user library has been created.

Can I have multiple workspaces in Eclipse?

Setting Up Your Workspace Eclipse designates a root folder in which to house sub-folders for projects and their resources. You can set up multiple workspaces if you want, but at any one time you will only have one open in Eclipse at a time.


1 Answers

There's an export option, at least as of Eclipse 3.5.2:

Window > Preferences > Java > Build Path > User Libraries > Export...

If that's not available, what version of Eclipse are you using? Also, what language are you working with? I'm assuming Java, but that wasn't tagged in your question.

like image 110
Isaac Truett Avatar answered Oct 02 '22 13:10

Isaac Truett