A JAR file also contains additional metadata about the files it contains.
However, if you treat the JAR file as an ordinary ZIP file, you can still
see the metadata, by looking for the file META-INF/MANIFEST.MF in the
unzipped JAR file.

The Java SDK provides the jar command.  E.G.
jar -tvf something.jar
Displays the table of contents of the JAR file.
However, a regular unzip command may run faster, and displays essentially
the same thing.

If you are writing a Java program, the JAR classes are usually just
wrappers around the ZIP classes, to add easy access to the metadata.

Douglas Wooster



From:
Mark Post <[EMAIL PROTECTED]>
To:
[email protected]
Date:
12/05/2008 03:07 PM
Subject:
Re: [LINUX-390] a un-jar utility for java archives?



>>> On 12/5/2008 at  2:56 PM, "Romanowski, John (OFT)"
<[EMAIL PROTECTED]> wrote:
> Anyone know where to get a un-jar utility for java archives?
> Does one come with the java SDK?

Plain old unzip will work just fine.  I have no idea why the Java
designers thought they needed to create a new name-ending for an old
storage type.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390



----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to