Trail: Deployment
Lesson: Deployment In-Depth
Section: Deployment Toolkit
Deploying a Java Web Start Application
Home Page > Deployment > Deployment In-Depth
Deploying a Java Web Start Application

You can deploy Java Web Start applications by using the createWebStartLaunchButton function of the Deployment Toolkit script. Java Web Start applications are launched using Java Network Launch Protocol (JNLP) The createWebStartLaunchButton function generates a link (HTML anchor tag - <a>) to the Java Web Start application's JNLP file.

This generated anchor tag is the Java Web Start application's button. When the end user clicks the Launch button, the Deployment Toolkit script ensures that an appropriate Java Runtime Environment (JRE) software is installed and then launches the Java Web Start application.


Note: Depending on the type of browser, you might be unable to view the HTML generated by the Deployment Toolkit script when you try to view the source for the web page. To view the generated HTML, try saving the HTML page after it has been loaded, or use a tool such as Firebug (a Mozilla Firefox add-on).

Note: If the client does not have the required minimum version of the JRE software, the Deployment Toolkit script will redirect the browser to http://www.java.com to allow users to download the latest JRE software.

Function signature: createWebStartLaunchButton: function(jnlp, minimumVersion) or createWebStartLaunchButton: function(jnlp)

Parameters:

Usage:

Previous page: Customizing the Loading Screen
Next page: Changing the Launch Button

Discuss
We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of replies — your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.