Manifest File

manifest.txt is deliver with the JAR so that JVM knows which one is the main class file.

manifest.txt example

Main-Class: MyApp

and then we can run this command to create a JAR file

jar -cvmf manifest.txt app1.jar *.class

To run the jar file, we use

java -jar app1.jar

To list what's inside the jar, we use

jar -tf package.jar

l