Creation of an executable
*.jar file. A jar file is simply a file containing a collection of java files.
First, create a manifest file : touch manifest.mf
In the manifest file, point Main-Class to our java file that has main entry point i.e. main() method. For example,
Make sure the compiled output class files (myGame.class) and the manifest file are in the same folder.
Create the .jar file by the following :
jar cfm MyGame.jar manifest.mf *.class