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发行说明。
You might need to configure your web server to handle Java Network Launch Protocol (JNLP) files. 您可能需要配置web服务器来处理Java网络启动协议(JNLP)文件。If the web server is not set up properly, the Java Web Start application will not launch when you click on the link to the JNLP file.如果web服务器设置不正确,当您单击指向JNLP文件的链接时,Java web Start应用程序将不会启动。
Configure the web server so that files with the 配置web服务器,以便将具有.jnlp
extension are set to the application/x-java-jnlp-file
MIME type..jnlp
扩展名的文件设置为application/x-java-jnlp-file
MIME类型。
The specific steps to set up the JNLP MIME type will vary depending on the web server. 设置JNLP MIME类型的具体步骤因web服务器而异。As an example, to configure an Apache web server, you should add the following line to the 例如,要配置ApacheWeb服务器,应该在mime.types
file.mime.types
文件中添加以下行。
application/x-java-jnlp-file JNLP
For other web servers, check the documentation for instructions on setting MIME types.对于其他web服务器,请查看文档以了解有关设置MIME类型的说明。