Home Help Java J Java JAR Files



Java JAR Files
Posted on: November 12, 2009 at 12:00 AM
A JAR file is a collection of class files and auxiliary resources associated with applets and applications.

Java JAR Files

     

A JAR file is a collection of  class files and auxiliary resources associated with applets and applications.
The Java Archive (JAR) file format enables to bundle multiple files into a single archive file.

Typically a JAR file format provides multiple benefits:

 Security

 Decreased download time

  Compression

  Packaging for extensions

  Package Sealing

  Package Versioning

 Portability

we are providing few java commands to work with the jar files

Result Command
Show help info jar -h
Create JAR file jar -cf  jar_file_name input_files
Extract JAR file jar -xf  jar_file_name
Extract a file from a JAR file jar -xf  jar_file_name output_files
Get JAR file listing jar -tf  jar_file_name
Update a JAR file jar -uf  jar_file_name input_files
Execute a JAR file java -jar  jar_file_name


In computing, a JAR file (or Java ARchive) is used for aggregating many files into one. It is generally used to distribute Java classes and associated metadata.

 WAR (Web Application aRchive) files store XML files, java classes, JavaServer Pages and other objects for Web Applications.
 RAR (Resource Adapter aRchive) files store XML files, java classes and other objects for J2EE Connector Architecture (JCA) applications.
 EAR (Enterprise ARchive) files stores XML files, java classes and other objects including JAR, WAR and RAR Java archive files for Enterprise Applications.

To know more about jar file, click at:

http:/www.roseindia.net/software-tutorials/detail/18288


http:/www.roseindia.net/software-tutorials/detail/6342

 

Related Tags for Java JAR Files:


More Tutorials from this section

Ask Questions?    Discuss: Java JAR Files  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.