1. Create a simple java project as shown in the screenshot below.
a. File --> New --> Project --> Java Project
b. Enter name of the project.
2. Create a class.
3. Export the project.
a. Right click on the project --> Click on the Export --> Expand Java --> Select Jar file
b. Enter jar file name and click next.
c. Customize the manifest file as show in the screenshot.
d. Click finish. Now the project is packaged as a jar file successfully.