To add libraries in eclipse which are required by the jars, below steps should be followed:
- Open properties: Project(right-click) -> properties
- Go to Java Build Path -> Libraries. Add Jars.. to add jar in classpath
- Expand the jar, there is a field "Native Library Location". Browse and add the folder where library is present.
- Build the project.
Now jar is able to see the library it needs.