23.5 The JAR Archive Format
The JAR file format is an archive format similar to ZIP. As usual for an archive format, JAR also packs several files together. However, “packed” doesn’t necessarily mean that files must be compressed; they can simply be bundled in a JAR. An unpacking program like 7-Zip can unpack JAR files. You may consider whether a program like 7-Zip should be associated with the .jar file extension or whether the default behavior should be retained with the JRE installed: On Windows, the .jar file extension is associated with the JRE that launches the main class of the archive.
23.5.1 Using the jar Utility
jar is a command-line utility that provides several options to create, unpack, and view archives. Rarely, the jar ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access