D:\spring-study\executable-jar\out\production\executable-jar>jar cfmv demo.jar MANIFEST.MF cn/*
已添加清单
正在添加: cn/dubby/(输入 = 0) (输出 = 0)(存储了 0%)
正在添加: cn/dubby/executable/(输入 = 0) (输出 = 0)(存储了 0%)
正在添加: cn/dubby/executable/jar/(输入 = 0) (输出 = 0)(存储了 0%)
正在添加: cn/dubby/executable/jar/Main.class(输入 = 751) (输出 = 470)(压缩了 37%)
正在添加: cn/dubby/executable/jar/random/(输入 = 0) (输出 = 0)(存储了 0%)
正在添加: cn/dubby/executable/jar/random/DubbyRandom.class(输入 = 714) (输出 = 452)(压缩了 36%)
D:\spring-study\executable-jar\out\production\executable-jar>java -jar demo.jar
Hello, World.
jar cmf jar-file existing-manifest input-file(s)
Hello, World.
MANIFEST.MF
jar cmf jar-file existing-manifest input-file(s)
MANIFEST.MF
Hello, World.
jar cmf jar-file existing-manifest input-file(s)
MANIFEST.MF
Hello, World.
Hello, World.