Create a JAR file for a Java Application
Update the Manifest
After the update file is created, on the command line type:
jar -ufmv LabName.jar update.txt
This statement will integrate the two lines in the update.txt file into the manifest file of the JAR file making it executable.
The switches ufmv tell the JAR command to 'U'pdate the 'F'iles 'M'anifest and produce 'V'erbose output of the process.