1. select Project, right click to view its properties, select 'Java Build-Path', click 'Libraries' tab at top, click 'Add External Jars' and select the appropriate library from your local disk then click on OK and save the project.
2. In the Project list, select 'Libraries', right click and select 'Import', select 'File System' and select the same library from your local system which you did earlier in step 1 above, check the appropriate library and in the 'into folder' text box click on your project-name/ejbModule for EJB project and project-name/WebContent, then click on OK and save the project.