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 can deploy Java Web Start applications by using the 您可以使用部署工具包脚本的createWebStartLaunchButton
function of the Deployment Toolkit script. createWebStartLaunchButton
函数部署Java Web Start应用程序。Java Web Start applications are launched using Java Network Launch Protocol (JNLP) The Java Web Start应用程序使用Java网络启动协议(JNLP)启动createWebStartLaunchButton
function generates a link (HTML anchor tag - <a>
) to the Java Web Start application's JNLP file.createWebStartLaunchButton
函数生成指向Java Web Start应用程序JNLP文件的链接(HTML锚标记<a>
)。
This generated anchor tag is the Java Web Start application's 生成的锚标记是Java Web Start应用程序的 button.
按钮。
When the end user clicks the Launch button, the Deployment Toolkit script ensures that the appropriate Java Runtime Environment (JRE) software is installed and then launches the Java Web Start application.当最终用户单击启动按钮时,部署工具包脚本确保安装了适当的Java Runtime Environment(JRE)软件,然后启动Java Web Start应用程序。
http://www.java.com
to allow users to download the latest JRE software. http://www.java.com
允许用户下载最新的JRE软件。Function signature:功能签名: createWebStartLaunchButton: function(jnlp, minimumVersion)
or 或createWebStartLaunchButton: function(jnlp)
Parameters:参数:
jnlp
– minimumVersion
– Usage:用法:
<script src="https://www.java.com/js/deployJava.js"></script> <script> var url = "http://java.sun.com/javase/technologies/desktop/javawebstart/apps/notepad.jnlp"; deployJava.createWebStartLaunchButton(url, '1.6.0'); </script>
Use the 如果应用程序没有最低的JRE软件版本要求,请使用createWebStartLaunchButton: function(jnlp)
function if your application does not have a minimum JRE software version requirement.createWebStartLaunchButton: function(jnlp)
函数。
createWebStartLaunchButton
functions, you must specify an absolute codebase in the Java Web Start application's JNLP file. createWebStartLaunchButton
函数进行部署时,必须在Java Web Start应用程序的JNLP文件中指定绝对代码库。javaws <path/to/local JNLP file>
command. javaws <path/to/local JNLP file>
命令从命令行启动。