A JAR file is a collection of class files and auxiliary resources associated with applets and applications.A JAR file is a collection of class files and auxiliary resources associated with applets and applications.
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:
Decreased download time
Packaging for extensions
we are providing few java commands to work with the jar files
|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: