The method of decompressing and compressing JAR package under Linux

 

 

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327104530&siteId=291194637