In the directory. Class, then you will execute the following command :
jar cvfm myapp.jar META - INF / MANIFEST.MF
This is going to create one. myapp.jar named executable jar file with this MANIFEST.MF in the META / INF. This jar is seen to add files in current directory (specified by the character'.'). The program will rebuild the jar Manifest file and display the standard output the results (it can verify that it is encoded correctly).
It then runs the jar as follows:
java -jar myapp.jar
The files described in the Manifest Class-Path will be searched according to their path relative to the main jar file.
Bookmarks