Java Reference
In-Depth Information
jar
Basic usage
jar cvf my.jar someDir/
Description
The jar utility is used to manipulate Java Archive ( .jar ) files. These are ZIP format
files that contain Java classes, additional resources, and (usually) metadata. The tool
has five major modes of operation—Create, Update, Index, List, and Extract—on
a .jar file.
These are controlled by passing a command option character (not a switch) to jar .
Only one command character can be specified, but optional modifier characters can
also be used.
Command options
c
Create a new archive
u
Update archive
i
Index an archive
t
List an archive
x Extract an archive
Modiiers
v
Verbose mode
f
Operate on a named file, rather than standard input
0
Store, but do not compress, files added to the archive
m
Add the contents of the specified file to the jar metadata manifest
e
Make this jar executable, with the specified class as the entry point
 
Search WWH ::




Custom Search