jar to java project code example
Example 1: java to jar
# cd into the directory that contains your project
jar cvfe <output jar filename>.jar <main class location> *
Example 2: import jar file
# cd into the directory that contains your jar file
jar xf name.jar