Reference address: http://blog.csdn.net/lc0817/article/details/51460760
Package all files in the current directory into project.jar
jar -cvfM0 project.jar ./
-c create jar package
-v show process information
-f
-M
-0 This is an Arabic number, which means only packaging and no compression
Unzip project.jar
jar -xvf project.jar
Unzip to the current directory, note that a game folder will not be created, but all the contents of the jar package will be extracted to the current folder