I have created a library project which can be used as reference project in any application. Now i want to create jar file of that library project so that instead of referencing the library project,i can add that created external jar file to build path and can use the library project component.Is there any way in eclipse to do so???
JAR file using Eclipse IDE
Creating JAR file using Eclipse IDE is pretty much easy. Follow the simple steps. Right click on your project, which you want to create a JAR file of. And select Export from the context menu.

Select JAR file from Java folder and click Next.

Provide the Destination path and click on Finish to create the JAR.
Here how to add JAR to your project, you can also create libs folder and drag an drop your jar inside this folder
You will need to export that project in eclipse. here are the steps: 1) right click the project in project explorer view. 2) click on exprot and type jar. 3) select the jar option and by giving appropriate name click on export.
The jar file will be created which u can use by adding it in the build path of another project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With