UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: ipcsChapter 2
Unix Commands
Next: Reference: java
 

jar

/usr/java/bin/jar [options] [manifest] dest files

Solaris only. Java archive tool. All the named objects and directory trees (if directories are given) are combined into a single Java archive, presumably for downloading. jar is based on the ZIP and ZLIB compression formats; zip and unzip can process .jar files with no trouble. If a manifest is not provided, jar creates one automatically. The manifest becomes the first entry in the archive, and it contains any needed metainformation about the archive.

Usage is similar to tar, in that the leading - may be omitted from the options.

Options

-c

Create a new or empty archive to standard output.

-f

The second argument, dest, is the archive to process.

-M

Use specified manifest instead of creating a manifest file.

-m

Don't create a manifest file.

-o

Don't compress the files with ZIP compression.

-t

Print a table of contents for the archive on standard output.

-v

Produce verbose output to standard error.

-x[file]

Extract named file, or all files if no file given.


Previous: Reference: ipcsUNIX in a Nutshell: System V EditionNext: Reference: java
Reference: ipcsBook IndexReference: java

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System