Common JAR file operations : Jar « Language « Java Tutorial






Operation                                Command
To create a JAR file                    jar cf jar-file input-file(s)
To view the contents of a JAR file         jar tf jar-file
To extract the contents of a JAR file     jar xf jar-file
To extract specific files from a JAR file jar xf jar-file archived-file(s)








1.3.Jar
1.3.1.Common JAR file operations
1.3.2.To invoke an applet packaged as a JAR file
1.3.3.To run an application packaged as a JAR file (requires the Main-class manifest header)
1.3.4.Sign jar with the certificate named alias in the keystore