Home >php教程 >PHP开发 >A simple method to decompress and compress JAR packages under Linux

A simple method to decompress and compress JAR packages under Linux

高洛峰
高洛峰Original
2017-01-07 13:45:341468browse

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!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn