The JavaTM Tutorial
Previous Page Trail Contents Next Page Start of Tutorial Search
Feedback Form

Trail: JAR Files

This chapter has been updated to reflect features and conventions of the latest release, JDK 5.0, but it is not yet final. We've published this preliminary version so you can get the most current information now, and so you can tell us (please!) about errors, omissions, or improvements we can make to this tutorial.
The JavaTM Archive (JAR) file format enables you to bundle multiple files into a single archive file. Typically a JAR file will contain the class files and auxiliary resources associated with applets and applications.

The JAR file format provides many benefits:

This trail has four lessons:

Using JAR Files: The Basics shows you how to perform basic JAR-file operations, and how to run software that is bundled in JAR files.

Working with Manifest Files: The Basics explains manifest files and how to customize them so you can do such things as seal packages and set an application's entry point.

Signing and Verifying JAR Files shows you how to digitally sign JAR files and verify the signatures of signed JAR files.

Using JAR-related APIs introduces you to some of the JAR-handling features of the Java platform.

The JAR file format is an important part of the Java platform's extension mechanism. You can learn more about that aspect of JAR files in the The Extension Mechanism trail of this tutorial.

Additional References

The documenation for the Java Development Kit includes information about the Jar tool:

Previous Page Trail Contents Next Page Start of Tutorial Search
Feedback Form

Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.