Multi-jar merger

1. Copy all the jar files to a temporary directory, unpack all the files .class jar command

jar -xvf xx.jar

xx.jar must be specific jar, can not be * .jar, will be reported FileNotFoundException

2, all of the jar files to delete the temporary directory

del /F *.jar

3, merge all the .class files to the jar, need to switch to the temporary directory, or generated jar will contain a temporary directory. Note that the last. "" Can not be omitted.

jar -cvfM game.jar .

Published 36 original articles · won praise 9 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_43278826/article/details/102716706