...
1. Select the Java class name in the project and open the context menu. Select Export.
2. In the dialog that appears, select JAR File . Choose Next.
3. Specify the location where to extract the JAR file.
The location where you export the file must be under your workspace area.
4. Specify the name for the JAR file. Here we use MyLoginModuleJAR.jar:
5. To export the file, choose Finish.
The file is exported to the specified location.
Creating a New Library Project