< Zurück | Inhalt | Weiter >

5.11.2 Basic jar Operation

We have already covered the most common case, using jar to create a “rolled- up” Java application. jar has many command options besides -c and we’ll document a few of them.


-c

Create a JAR file.


-u

Update a JAR file—replace updated files, add missing files.


-x

Extract files from a JAR file.


-t

List files in a JAR.


-f

Specify the JAR filename.


-v

Be verbose—display descriptions of what the jar utility is doing as it does it.


-m

Add the contents of the named file to the manifest.


5.12 THE REST OF THE TOOLKIT


There are additional utilities in the toolkit. Below is a capsule summary of them and their purposes.