A jar file is an archive file built in zip format with a .jar file extension. It is usually used to aggregate a large number of Java class files, related metadata and resource files into one file in order to develop Java platform application software or libraries.
jar file introduction:
In the software field, JAR files (Java Archive, English: Java Archive) are A software package file format that is usually used to aggregate a large number of Java class files, related metadata and resource (text, images, etc.) files into one file to develop Java platform application software or libraries.
(Learning video sharing: java teaching video)
JAR file is an archive file, built in ZIP format, with .jar as the file extension. Users can use the JDK's own jar command to create or extract JAR files. You can also use other zip compression tools, but the order of entries in the zip file header is important when compressing, because the Manifest file often needs to be placed first. File names within JAR files are Unicode text.
The JAR file format offers many advantages and features, many of which are not provided by traditional compression formats such as ZIP or RAR. They include:
Security
The contents of JAR files can be digitally signed. This way, a tool that recognizes the signature can selectively grant you software security privileges that no other file can, and it can also detect whether the code has been tampered with.
Reduce download time
If an applet is bundled into a JAR file, then the browser can download the applet's class files and related resources in one HTTP transaction instead of each A file opens a new connection.
Compression
The JAR format allows you to compress files to increase storage efficiency.
Transport Platform Extensions
The Java Extensions Framework provides a way to add functionality to the Java core platform. These extensions are packaged in JAR files (Java 3D and JavaMail are developed by Sun Developed extended example).
Package Sealing
Packages stored in JAR files can optionally be sealed to enhance version consistency and security. Sealing a package means that all classes in the package must be found in the same JAR file.
Package Versioning
A JAR file can contain data about the files it contains, such as vendor and version information.
Portability
The mechanism for handling JAR files is a standard part of the Java platform core API.
Related recommendations: java introductory tutorial
The above is the detailed content of What file is jar?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Zend Studio 13.0.1
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.