JAR (file format) JAR (文件格式)
(重定向自Java archive)
In software, JAR (Java Archive) is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.) into one file to distribute application software or libraries on the Java platform.
JAR files are fundamentally archive files. They are built on the ZIP file format and have the .jar
file extension. Computer users can create or extract JAR files using the jar
command that comes with a JDK. They can also use zip
tools to do so, however the order of entries in the zip file headers is important when compressing, as the manifest often needs to be first. Inside a JAR, file names are Unicode text.