Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create External Jar Files

Tags:

android

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???

like image 758
umesh Avatar asked Mar 27 '26 15:03

umesh


2 Answers

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.

enter image description here

Select JAR file from Java folder and click Next.

enter image description here

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

like image 57
K_Anas Avatar answered Mar 29 '26 06:03

K_Anas


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.

like image 45
mkbsc Avatar answered Mar 29 '26 08:03

mkbsc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!