How to convert android project to executable .jar file

Right Click on Project –> Export —> Java –> JarFile

Window will appear Select Resources to Export

Select only the src checkbox ie the (pacakages) in Top-Left Window.

Don’t Select anything in Top-Right Window if some thing is selected  remove the tick mark

Select only the first Checkbox in the middle left window ie  Export generates Class Files and Resources

Select the Export Destination ie the path where u want to save ur jar file

In Options Select only Compress the contents of the jar file

Click Finish u will find ur jar file

Now if u want to add this jar file to any project. It is very simple

Right click on project –> Select Properties –> Java Build Path —> libraries –> Add External Jar Files –> Click OK

Now just Build your project U WILL find the jar file


Tags: , , , ,

About krishjlk

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: