Documentation

The Java™ Tutorials
Hide TOC
Packaging Programs in JAR Files在JAR文件中打包程序
Trail: Deployment

Lesson: Packaging Programs in JAR Files课程:在JAR文件中打包程序

The Java™ Archive (JAR) file format enables you to bundle multiple files into a single archive file.Java™归档(JAR)文件格式使您能够将多个文件捆绑到单个归档文件中。Typically a JAR file contains the class files and auxiliary resources associated with applets and applications.通常,JAR文件包含与小程序和应用程序关联的类文件和辅助资源。

The JAR file format provides many benefits:JAR文件格式提供了许多好处:

This lesson has four sections:本课程分为四节:

Using JAR Files: The Basics使用JAR文件:基础

This section shows you how to perform basic JAR-file operations, and how to run software that is bundled in JAR files.本节介绍如何执行基本的JAR文件操作,以及如何运行打包在JAR文件中的软件。

Working with Manifest Files: The Basics使用清单文件:基础

This section 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 FilesJAR文件的签名和验证

This section shows you how to digitally sign JAR files and verify the signatures of signed JAR files.本节介绍如何对JAR文件进行数字签名,并验证已签名JAR文件的签名。

Using JAR-related APIs使用与JAR相关的API

This section introduces you to some of the JAR-handling features of the Java platform.本节向您介绍Java平台的一些JAR处理特性。The JAR file format is an important part of the Java platform's extension mechanism.JAR文件格式是Java平台扩展机制的重要组成部分。You can learn more about that aspect of JAR files in the The Extension Mechanism trail of this tutorial.您可以在本教程的扩展机制教程中了解有关JAR文件这方面的更多信息。

Questions and Exercises: JAR问题和练习:JAR

Test what you've learned about JAR.测试您对JAR的了解。

Additional References其他参考资料

The documentation for the Java Development Kit (JDK) includes information about the Jar tool:Java开发工具包(JDK)的文档包括关于Jar工具的信息:


Previous page: Previous Lesson
Next page: Using JAR Files: The Basics