There is a simple way to add the jar to the project in eclipse. Below are the steps to be followed to add a JAR file in eclipse.
1. You need to right-click on the project.
2. Click on build path followed by configure build path.
3. You will be able to view the libraries tab.
4. Under the libraries tab, you will need to click on add jars or external JARs and give the jar.