Java Jar File

In Java, JAR (Java ARchive) is a platform-independent file format that allows you to bundle a Java applet and its requisite components (.class files, images and sounds) into a single JAR file.

Java Jar File

Java Jar File

     

In Java, JAR (Java ARchive) is a platform-independent file format that allows you to bundle a Java applet and its requisite components (.class files, images and sounds) into a single JAR file. It supports compression, which reduces the file size, and improves the download time. The java.util.jar package provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. This file is located in the path META-INF/MANIFEST.MF. The entries in the manifest file determine how the JAR file will be used.


Here the class summary defined in the java.util.jar package is shown in the table:

Class

Description

Attributes

The Attributes class maps Manifest attribute names to associated string values.

Attributes.Name

This class represents an attribute name stored in this Map.

JarEntry

This class is used to represent a JAR file entry.

JarFile

This class is used to read the contents of a JAR file from any file that can be opened with java.io.RandomAccessFile.

JarInputStream

The JarInputStream class is used to read the contents of a JAR file from any input stream.

JarOutputStream

The JarOutputStream class is used to write the contents of a JAR file to any output stream.

Manifest

The Manifest class is used to maintain Manifest entry names and their associated Attributes.


Read more at:

http:/www.roseindia.net/java/example/java/util/JarFile.shtml

http:/www.roseindia.net/java/example/java/util/CreateJar.shtml