Java - JAR file command-line tool


The following table lists the command-line options for the jar tool.

Create a new JAR file.
Update an existing JAR file.
Extract a named file or all files from a JAR file.
List the table of contents of a JAR file.
Specify the JAR file name.
Include the manifest information from the specified file.
Do not create a manifest file.

Generate index information for the specified JAR file. It creates an INDEX.LIST file in JAR file under the
META-INF directory.
Do not compress the entries in the JAR file.

Add the specified class name as the value for the Main-Class entry in the main section of the
manifest file.
Generate verbose output on the standard output
Change to the specified directory and include the following files in a JAR file.

Related Topics