search
HomeJavaJavagetting StartedWhat file format is jar?

What file format is jar?

Feb 08, 2021 pm 03:28 PM
jar

jar is a software package file format, 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 files also refer to a An archive file constructed in ZIP format with a ".jar" file extension.

What file format is jar?

#The operating environment of this article: Windows 7 system, DELL G3 computer, Java8.0.

In the software field, JAR file (Java Archive, English: Java Archive) is a software package file format that is usually used to aggregate a large number of Java class files, related metadata and resources (text, pictures, etc. ) file to a file for developing Java platform applications or libraries.

A JAR file is an archive file built in ZIP format with a .jar 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 is based on the popular ZIP file format. Unlike ZIP files, JAR files are not only used for compression and distribution, but also for deployment and packaging of libraries, components and plug-ins, and can be used directly by tools like compilers and JVM. Special files, such as manifests and deployment descriptors, are included in a JAR to instruct tools on how to process a particular JAR.

Related Features

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, the browser can download the applet's class files and related resources in one HTTP transaction instead of downloading each applet. 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).

Recommended: "java tutorial"

  • Package seal

Stored in the JAR file Packages can optionally be sealed for enhanced 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.

The above is the detailed content of What file format is jar?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

mPDF

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),

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.