Home Help Java J Java JAR Files
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Java JAR Files

Advertisement
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

 

Advertisements

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

Ask Questions?    Discuss: Java JAR Files  

Post your Comment


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