setJREDownloadURL Property

Description

This property sets the location to download the required Java Runtime Environment from if it is needed on the client machine.  This property can be used to specify a specific JRE for use with EditLive! for Java.

Syntax

JavaScript object.setJREDownloadURL(strJREURL)

Parameters

strJREURL Required.  A string containing the location to download the Java Runtime Environment from if it is required to be installed.

Example

The following creates an instance of EditLive! for Java and sets the JRE download URL to be ../JREDownload/j2re-1_4_1-windows-i586-i.exe.

var editlivejava1;
editlivejava1 = new EditLiveJava("ELJApplet1","600","400");
editlivejava1.setJREDownloadURL("../JREDownload/j2re-1_4_1-windows-i586-i.exe");
editlivejava1.setLocalDeployment(true);
editlivejava1.setMinimumJREVersion("1.4.0");

Remarks

This may be a relative or absolute URL.

If a relative URL is specified then this will be relative to the URL of the page in which the EditLive! for Java applet is embedded.

The setLocalDeployment property must be set to true.

The setMinimumJREVersion property must be set to a JRE version which has a version number less than or equal to that of the JRE found at the location specified in the setJREDownloadURL property.  By default the setMinimumJREVersion attribute is set to "1.4.0".

The setJREDownloadURL property must specify the URL of a JRE installer executable.

See Also