Skip to main content

deployJava.js doesn't download latest JRE

No replies
assur
Offline
Joined: 2009-11-24
Points: 0

We are trying to use Java Deploy Plugin to launch our JWS application.
Our environment:
- Windows XP 32bit
- latest JRE 1.6.0_17-b04
- latest Firefox 3.5.5

We wrote simple index.html:

jnlp='application.jnlp';
res=deployJava.launchWebStartApplication(jnlp);
alert('res='+res);

When this code is executed, the launchWebStartApplication() function checks for JRE 1.6.0_18:

// windows case
if (uaString.indexOf("windows", 0) != -1) {
if (deployJava.isWebStartInstalled('1.6.0_18') == false) {
// perform latest JRE auto-install
if (deployJava.isPluginInstalled()) {
if (deployJava.installLatestJRE() == false) {
alert("Java install failed: cannot use launchWebStartApplication function");
return;
}
} else {
alert("Please visit java.com to install Java and try again after");
return;
}
}

So far there is no JRE 1.6.0_18 installed, and function installLatestJRE() called.
Finally, it calls plugin:
if (deployJava.getPlugin().installLatestJRE()) ...

Next, the plugin download http://java.com/inc/dtoolkit.xml , parse it, and pick up the "latest" bundle:

The plugin download that bundle (36668) and launch JREInstall160_17.exe, which install JRE 1.6.0_17 that we already have installed. No big progress.

What I was missed?

Is there "early access" "dtoolkit.xml", or other ways to force "deployJava.js" to do its job automatically?
If no such exists, please, tell me how soon JRE1.6.0_18 will appbear in the official "dtoolkit.xml" ?