how to use jar file in java code example
Example 1: import jar file
# cd into the directory that contains your jar file
jar xf name.jar
Example 2: run jar file
java -jar yourFile.jar
# cd into the directory that contains your jar file
jar xf name.jar
java -jar yourFile.jar