The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
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:本课程分为四节:
This section shows you how to perform basic JAR-file operations, and how to run software that is bundled in JAR files.本节介绍如何执行基本的JAR文件操作,以及如何运行打包在JAR文件中的软件。
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.本节介绍清单文件以及如何自定义它们,以便您可以执行诸如密封包和设置应用程序入口点之类的操作。
This section shows you how to digitally sign JAR files and verify the signatures of signed JAR files.本节介绍如何对JAR文件进行数字签名,并验证已签名JAR文件的签名。
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文件这方面的更多信息。
Test what you've learned about JAR.测试您对JAR的了解。
The documentation for the Java Development Kit (JDK) includes information about the Jar tool:Java开发工具包(JDK)的文档包括关于Jar工具的信息: