Pack200
Pack200, specified in JSR 200[1] (J2SE 1.5), deprecated in JEP 336[2] (Java SE 11) and removed in JEP 367 (Java SE 14),[3] is a compacting archive format developed by Sun, capable of reducing JAR file sizes by up to a factor of 9,[4] with a factor of 3 to 4 seen in practice.[5][6] Pack200 is optimized for compressing JAR archive files, specifically the Java bytecode portion of the JAR files. Applications of this technology include faster Java application deployment over Java Web Start.
After Pack200, gzip compression is usually applied. In HTTP compression, such content is specified by the Content-Encoding type pack200-gzip
. When stored as a file, the extension .pack.gz
is used.[7]
Pack200 may also refer to the Pack200 compression tools (pack200
and unpack200
) provided in the Java Development Kit from Java 5 until Java 14.
Design
Pack200 modifies the contents of the Java class files in the JAR archive undergoing compression. Transformations to the class files include merging constant pools and removing duplicated attributes.[8] The format is not lossless; it is possible for a JAR file after unpacking to not be identical to how it was before packing.[9]
References
- ↑ "JSR 200: Network Transfer Format for Java Archives.". https://www.jcp.org/en/jsr/detail?id=200.
- ↑ "JEP 336: Deprecate the Pack200 Tools and API". https://openjdk.java.net/jeps/336.
- ↑ "JEP 367: Remove the Pack200 Tools and API". https://openjdk.java.net/jeps/367.
- ↑ "Pack200: A Packed Class Deployment Format For Java Applications". https://docs.oracle.com/en/java/javase/11/docs/specs/pack-spec.html.
- ↑ "Smaller Java" (in en). https://dzone.com/articles/smaller-java.
- ↑ "Combining Ant, Jar, Signatures and Pack200". https://bfo.com/blog/2010/05/13/combining_ant_jar_signatures_and_pack200/.
- ↑ "Pack200 and Compression for Network Deployment". https://web.mit.edu/java_v1.5.0_22/distrib/share/docs/guide/deployment/deployment-guide/pack200.html.
- ↑ "Pack200 Compression Method" (in en). https://www.advancedinstaller.com/user-guide/pack200.html.
- ↑ "Commons Compress – Commons Compress Pack200 Package". https://commons.apache.org/proper/commons-compress/pack200.html.
External links
- Pack200 Java API
pack200
commandunpack200
command- Compression Formats for Network Deployment
- on GitHub - standalone fork of pack200 that works on Java 8–14
Original source: https://en.wikipedia.org/wiki/Pack200.
Read more |