Purpose:Extract or list files in a Java JAR archive

 

Format:UNJAR [/= /A:[[-][+]rhsdaecjot] /C /E /F /O /P /Q /T /TEST /U /V] jararchive [path] [@file] file...

 

jararchiveThe JAR file to work with
pathThe path where files will be extracted
fileThe file(s) to extract

 

/A:... (attribute switch)/P(ercent)
/C(ontents)/Q(uiet)
/E(xtract)/TEST
/F(reshen)/U(pdate)
/O(verwrite)/V(iew)        

 

File Completion Syntax:

 

The default filename completion syntax is: [1] dirs jar [2*] *

 

Usage:

 

UNJAR will extract or list files in a Java JAR archive. The syntax is similar to the UNZIP command.

 

See also JAR and JARPATH.

 

Options:

 

/=Display the UNJAR command dialog to help you set the filename and command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.

 

/A:...Select only those files that have the specified attribute(s) set. See Attribute Switches for information on the attributes which can follow /A:. Do not use /A: with @file lists. See @file lists for details.

 

You can specify /A:= to display a dialog to help you set individual attributes.

 

/CDisplay (on standard output) the contents of a file in the tar archive.

 

/EExtract the specified file(s). (This is the default.)

 

/FExtract only those files that currently exist in the target folder, and which are older than the file in the Jar archive.

 

/OOverwrite existing files. UNJAR normally prompts before overwriting an existing file; /O will suppress the prompt.

 

/PDisplay the progress (0 - 100%) for each file as it is extracted.

 

/QDon't display filenames as they are extracted.

 

/TESTTest the integrity of the JAR file (header and contents). Any errors will be displayed on STDERR.

 

/UExtract files which either don't exist in the target folder, or which are older than the file in the Jar archive.

 

/VView the list of files in the archive (date, time, size, and filename).