站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Tutorial 5.0 英文版

Java Web Start - Java Tutorial 5.0 英文版

The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search
Feedback Form

Trail: Deployment

Lesson: Java Web Start

Java Web Start provides the power to launch full-featured applications with a single click. Users can download and launch applications, such as a complete spreadsheet program or an Internet chat client, without going through complicated installation procedures.

With Java Web Start, the user can launch a Java application by clicking a link in a Web page. The link points to a JNLP file, which instructs Java Web Start to download, cache and run the application.

Java Web Start provides Java developers and users with many deployment advantages:

  • With Java Web Start, you can place a single Java application on a Web server for deployment to a wide variety of platforms, including Windows 98/NT/2000/ME/XP, Linux, and SolarisTM
  • Java Web Start supports multiple, simultaneous versions of the Java 2 Standard Edition platform. Specific applications can request specific Java versions without conflicting with the different needs of other applications. Java Web Start automatically downloads and installs the correct version of the Java platform as necessary based on the application's needs and the user's environment.
  • Users can launch a Java Web Start application independently of a Web browser. The user can be off-line, or unable to access the browser. Desktop shortcuts can also launch the application, providing the user with the same experience as a native application.
  • Java Web Start takes advantage of the inherent security of the Java platform. By default, applications have restricted access to local disk and network resources. Users can safely run applications from sources that are not trusted.
  • Applications launched with Java Web Start are cached locally, for improved performance.
  • Java Web Start provides limited support for applets through its built-in applet viewer. However, this is not intended to be a full- scale applet environment, such as the one provided by Java Plug-in. Java Web Start's applet viewer has certain limitations; for example, you cannot specify class files as resources, and it does not accept policy files.
In Java Version 1.4.2 and beyond, Java Web Start is installed as part of the JRE. Users do not have to install it separately or perform additional tasks to use Java Web Start applications.

This lesson contains the following sections:

Running Java Web Start Applications  (in the Deployment trail)

You can run an application with Java Web Start in three different ways.

Deploying Java Web Start Applications  (in the Deployment trail)

You deploy an application for Java Web Start in four simple steps.

Developing Java Web Start Applications  (in the Deployment trail)

You develop an application for use through Java Web Start just as you would any Java application, with a few special considerations.

The JNLP API  (in the Deployment trail)

You can use the JNLP API to access additional information in applications run through Java Web Start.

Java Web Start and Security  (in the Deployment trail)

Java Web Start applications run in a sandbox by default. You can provide digital signatures and permissions in the JNLP file to enable functionality beyond the sandbox.

Common Java Web Start Problems  (in the Deployment trail)

Gives solutions to some problems you might encounter while learning Java Web Start.

Questions and Exercises: Java Web Start  (in the Deployment trail)

Test what you've learned about Java Web Start.

Additional References

This lesson is intended to get you started with Java Web Start and does not include all available documentation. For more information about Java Web Start, see the following:

Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search
Feedback Form

Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.