User library allowed us to create reusable/shared libraries in Eclipse that can be used in multiple projects within the same workspace.
Steps:
Window > Preferences > Java > Build Path > User Libraries
2. Create New User Library
Click New > Enter User library name > OK
3. Add JAR files into the new User Library
Click Add External JARs > Browse and select required JAR files > Open
4. OK
R-click on a project > Java Build Path
2. Add Library
Add Library > User Library > Next > Check required user libraries > Finish
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!!
Steps:
Creating a User Library
1. Go to User LibrariesWindow > Preferences > Java > Build Path > User Libraries
2. Create New User Library
Click New > Enter User library name > OK
3. Add JAR files into the new User Library
Click Add External JARs > Browse and select required JAR files > Open
4. OK
Using User Library
1. Open project Java Build PathR-click on a project > Java Build Path
2. Add Library
Add Library > User Library > Next > Check required user libraries > Finish
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!!
No comments:
Post a Comment