The Manifest File

The first entry in any JAR file is a collection of meta-information about the archive. The JAR tool generates this meta-information automatically and stores it in a top-level directory named META-INF. This directory always contains what is known as the manifest file, META-INF/MANIFEST.MF (see Listing 25.3). Use the following command to extract the manifest file:

C:\jdk1.3\demo\applets\TicTacToe>jar xvf ourtest.jar META-INF/MANIFEST.MF
extracted: META-INF/MANIFEST.MF

C:\jdk1.3\demo\applets\TicTacToe>

Listing 25.3a shows the contents of the manifest file from ourtest.jar file.

Code Listing 25.3a. Manifest File MANIFEST.MF of ourtest.jar
Manifest-Version: 1.0
Created-By: 1.3.0 (Sun Microsystems Inc.)

The manifest file that ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.