The jar tool creates a JAR archive file by combining multiple files of a Java application.
The jar tool compresses content based on the ZIP and ZLIB compression formats.
You can also use the jar tool to extract the content of a JAR file.
Option | Description |
c | Creates a new archive. |
t | Lists the contents of an archive. |
x | Extracts contents from an archive. |
u | Updates an existing archive. |
v | Displays output at the command prompt while the jar tool performs an operation. |
f | Specifies the name of the archive file. |
m | Includes a specified manifest file in the archive. |
o | Instructs the jar tool not to compress content. |
M | Instructs the jar tool not to create a manifest file for an archive. The jar tool, by default, creates an empty manifest file in an archive. |
C | Specifies the directories to include in the archive. |