![]() |
JavaTM Deployment Technologies |
Documentation Contents |
A Java virtual machine must be available to the browser for use in running applets. Many browsers come with their own version of the Java virtual machine built in. However, such built-in virtual machines are often based on the JDK 1.1 Java platform and therefore are not capable of running applets that make use of new features added to the Java platform since JDK 1.1.
To remedy this situation, the Java Plug-in provides an up-to-date Java virtual machine and runtime environment for "plugging in" to a browser. The browser can use this up-to-date Java virtual machine to run applets that use the latest functionality of the Java platform.
Applets can be posted on a network for running in web browsers, so they are obviously a powerful way for developers to deploy their programs. In addition, Java Plug-in provides technology that enables developers to specify which version of the Java platform is required to run their applet. If the specified version of the Java platform is not already installed on the client machine then the applet is accessed, an automatic download of the correct Java platform can be triggered (on Microsoft Windows). On the Solaris Operating Environment and on Linux, the developer can automatically take the user to a download page for the correct version of the Java platform.
On Microsoft Windows, Java Plug-in is automatically installed when the Java Runtime Environment or Java 2 SDK is installed. The Java Plug-in also comes with the Java 2 SDK and the Java Runtime Environment for Solaris and Linux, and it can be installed manually.
For more information on Java Plug-in, see Java Plug-in Documentation.
With Java Web Start, a user launches an applications simply by clicking on a Web page link. If the application is not present on the client computer, Java Web Start automatically downloads all necessary files for the application, including a new version of the Java platform if needed. Java Web Start caches the application on client computer. On subsequent launches of the application, Java Web Start will check the network for an updated version of the application, and if there isn't an update, it will launch the cached version.
On Microsoft Windows, Java Web Start is automatically installed when the Java Runtime Environment or Java 2 SDK is installed. The Java Web Start also comes with the Java 2 SDK and the Java Runtime Environment for Solaris and Linux, and it can be installed manually.
For more information on Java Web Start, see Java Web Start.
Both the Windows versions of Java Plug-in and Java Web Start make use of the
codebase
attribute of the OBJECT
element to autodownload
and install a particular version of the JRE. See:
By specifying a particular .cab
file in the codebase
,
a particular version of the JRE can be automatically downloaded and installed
as required by an applet or application. For a list of the available .cab
files, see Autodownload Files. Note that
not every release of the JRE has an associated .cab
file for autodownload.
Copyright © 2002 Sun Microsystems, Inc. All Rights Reserved. Please send comments to: java-plugin-feedback@sun.com or javawebstart-feedback@sun.com |
![]() Java Software |