Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What file format does jar refer to?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces what jar refers to the file format, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Jar is a package file format that is usually used to aggregate a large number of Java class files, related metadata and resource (text, pictures, etc.) files into one file; JAR files are archived files built in ZIP format with the file extension ".jar".

In the software field, JAR file (Java archive, English: Java Archive) is a software package file format, which is usually used to aggregate a large number of Java files, related metadata and resources (text, pictures, etc.) files into one file, in order to develop Java platform applications or libraries.

The JAR file is an archive file built in ZIP format with a .jar file extension. You can use the jar command that comes with JDK to create or extract JAR files. Other zip compression tools can also be used, but the order of entries in the zip header is important because Manifest files often need to be placed first. The file name within the JAR file is Unicode text.

The JAR file format is based on the popular ZIP file format. Unlike ZIP files, JAR files are used not only for compression and distribution, but also for deploying and packaging libraries, components, and plug-ins, and can be used directly by tools such as compilers and JVM. Special files, such as manifests and deployment descriptors, are included in the JAR to instruct the tool how to handle a particular JAR.

Features:

Security.

You can add a digital signature to the contents of the JAR file. In this way, a tool that recognizes signatures can selectively grant you software security privileges that other files cannot, 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 class file and related resources in a HTTP transaction instead of opening a new connection to each file.

Compress

The JAR format allows you to compress files to improve storage efficiency.

Transmission platform extension

The Java extension Framework (Java Extensions Framework) provides a way to add functionality to the core Java platform, which is packaged in JAR files (Java 3D and JavaMail are examples of extensions developed by Sun).

Package seal

Packages stored in JAR files can be optionally 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 version control

An 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 core API of the Java platform.

Thank you for reading this article carefully. I hope the editor shares what file format jar refers to is helpful to everyone. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report