# HG changeset patch # User Oleksandr Gavenko # Date 1285917685 -10800 # Node ID cbb6732070d802e00f8cffda10e0b7a512e2debc # Parent 6c93864064a2d0d53a0a8e52974362acb614f4f3 Creating jar. diff -r 6c93864064a2 -r cbb6732070d8 java.rst --- a/java.rst Thu Sep 30 16:17:14 2010 +0300 +++ b/java.rst Fri Oct 01 10:21:25 2010 +0300 @@ -118,3 +118,12 @@ http://java.sun.com/performance/reference/whitepapers/5.0_performance.html http://java.sun.com/performance/reference/whitepapers/6_performance.html + +* Creating jar. + + $ jar cf myFile.jar *.class + + $ jar cmf myManifestFile myFile.jar *.class + + $ jar -cfe Main.jar foo.Main foo/Main.class +