In eclipse how to generate a .jar project file to use in another application
In eclipse how to generate a .jar project file to use in another application
Locate in the Package Explorer view the project from which you want to generate the JAR file, right-click and select the Export option.
IntheWizardthatappears,typetheword"jar" in the "Select an export destination" text box and you will see a number of options that display relevant content according to what you typed. Select the JAR File (Java) option and click the "Next" button.
ThenextstepoftheWizardistheJARExportwindow-wherethedesignstructurechosenisdisplayed.Thereisanoptiontoselectwhichclasses(resources)willbeexportedintotheJAR.Inadditiontotheclasses,itisnecessarytodefinethedirectoryandthenameofthe.jarfilethatwillbegenerated-inthe"Select the export destination - JAR File" text box
Intheapplicationyouwanttoadd.jar,justclickImportthistime.
Source: link