Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Webstart in x64 machines

807607Jan 12 2007 — edited Jan 12 2007
Hi everyone,

I would like to launch webstart with JRE autoinstall in x64 machine and got into some issues.

I have 32-bit JRE installed in the machine. Sun documented to use 32-bit JRE to run webstart in x64. However, when I run the default html, it keeps redirecting to autoinstall the JRE. It seems that it could not detect that webstart is already installed. The script is as follows.

Does anybody know how to verify webstart is installed in x64 (if different from 32-bit?

I really appreciate any help.

Thank you.

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
SCRIPT LANGUAGE="JavaScript">
var javawsInstalled = 0;
var javaws142Installed=0;
var javaws150Installed=0;
isIE = "false";
if (navigator.mimeTypes && navigator.mimeTypes.length) {
x = navigator.mimeTypes['application/x-java-jnlp-file'];
if (x) {
javawsInstalled = 1;
javaws142Installed=1;
javaws150Installed=1;
}
}
else {
isIE = "true";
}
</SCRIPT>

<!-- Detecting if JavaWeb Start is installed on IE, and if so, the version -->


<SCRIPT LANGUAGE="VBScript">
on error resume next
If isIE = "true" Then
If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then
javawsInstalled = 0
Else
javawsInstalled = 1
End If
If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then
javaws142Installed = 0
Else
javaws142Installed = 1
End If
If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.5.0.0"))) Then
javaws150Installed = 0
Else
javaws150Installed = 1
End If

End If
</SCRIPT>
if (javaws150Installed || (navigator.userAgent.indexOf("Gecko") !=-1)) {

window.open("./MyApp.jnlp","_self");

} else
{
window.open("http://java.sun.com/PluginBrowserCheck");
}
</SCRIPT>

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2007
Added on Jan 12 2007
1 comment
122 views