Appendix G. Using the jarsigner Tool

This appendix shows you how to use the jarsigner tool of the Java 2 platform to sign JAR files. It can also be used as a command-line reference for the jarsigner tool.

JAR Files

A JAR file is a compressed archive file that is created using the Java archive tool (jar), which is similar to the PKZIP program developed by Phil Katz. It combines multiple files into a single archive file that is compressed using the ZLIB compression library. Although jar is a general-purpose file archive and compression tool, its main purpose is to combine the files used by an applet, application, or API into a single compressed file for efficient loading by a Java-enabled Web browser.

Using JAR files with applets can greatly improve ...

Get Java Security Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.