Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java J Java Jar File

Related Tutorials


 
 

Share on Google+Share on Google+

Java Jar File

Advertisement
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

     

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

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 12, 2009

Related Tutorials

Discuss: Java Jar File  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com