Java JAR Files

A JAR file is a collection of class files and auxiliary resources associated with applets and applications.

Java JAR Files

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