Package all files in the current directory into project.jar
jar -cvfM0 project.jar ./
-c Create jar package
-v Display process information
-f
-M
-0 This is an Arabic numeral, it means only packaging but not compression
Decompress project.jar
jar -xvf project.jar
Extract 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.
The above simple method of decompressing and compressing JAR packages under Linux is all the content shared by the editor. I hope it can give you a reference, and I hope you will support the PHP Chinese website.
For more related articles on simple methods to decompress and compress JAR packages under Linux, please pay attention to the PHP Chinese website!