Saturday, July 27, 2013

How to create user library in Eclipse

User library allowed us to create reusable/shared libraries in Eclipse that can be used in multiple projects within the same workspace.

Steps:

Creating a User Library

1. Go to User Libraries
Window > Preferences > Java > Build Path > User Libraries


2. Create New User Library
Click New > Enter User library name > OK
create new user library

3. Add JAR files into the new User Library
Click Add External JARs > Browse and select required JAR files > Open
add external jar into a user library

4. OK

Using User Library

1. Open project Java Build Path
R-click on a project > Java Build Path
open project build path

2. Add Library
Add Library > User Library > Next > Check required user libraries > Finish
choosing user libraries for a project

3. OK

4. User libraries configured in the workspace can be reused by other projects in the same workspace by repeating step 1-3.


Done!!

LinkWithin

Related Posts Plugin for WordPress, Blogger...