I have application build with Java Applets, which works fine for Windows 7 with IE 9. Now I'm trying move it to another environment. There is Internet Explorer 11.
To run applet I'm using Oracle Deployment Toolkit Script with latest version taken from https://www.java.com/js/deployJava.txt. But the script doesn't detect Java Plugin. It only redirects to page java.com
(suggesting to download latest JRE
).
But my browser has Java Plugin installed (here JRE 1.7.80):
There are also two SSV Helpers - maybe they cause the problem?
Java 8 (u144) cause the same problem.
Question:
How to detect Java Plugin in IE 11 and run applet?
Is it problem with deployJava.js
or IE 11 configuration?
More explanations:
Oracle deployJava.js
script uses such code to detect JRE version in IE (deployJava source - lines 1172-1188):
testUsingActiveX: function(version) {
var objectName = 'JavaWebStart.isInstalled.' + version + '.0';
// we need the typeof check here for this to run on FF/Chrome
// the check needs to be in place here - cannot even pass ActiveXObject
// as arg to another function
if (typeof ActiveXObject == 'undefined' || !ActiveXObject) {
log('[testUsingActiveX()] Browser claims to be IE, but no ActiveXObject object?');
return false;
}
try {
return (new ActiveXObject(objectName) != null);
} catch (exception) {
return false;
}
},
Unfortunately, ActiveX seems to be limited, restricted or disabled in IE 11. This topic on SO is here... anyone knows any details?
I run manually (in IE 11.1480 developer console) this code:
new ActiveXObject('JavaWebStart.isInstalled.1.8.0.0');
which returns:
Automation server can't create object
But running the same code in a bit older IE 11.09600 returns object:
[object] { }
I'm confused... Can Oracle do the script better?
Specification:
Internet Explorer 11, Version: 11.1480... Update Versions: 11.0.44
System: Windows Server
Java: tested with 1.8.144 and after 1.7.80
Applets run by Oracle deployJava.js
I've found a solution:
Applets requires 32-bit JRE installed on client machine (and as IE Plugin). Or to be more specific IE ActiveX mechanism works only with 32-bit Java because all IE are 32-bit by default. There are also 64-bit IE version, but I don't try it.
I used the newest JRE 1.8u144 32 bit
.
Some hints for anyone to make applets work (even in 2017):
More information can be retrieved from this discussion:
https://answers.microsoft.com/en-us/ie/forum/ie11-iewindows_10/cannot-access-secure-website-that-requires-java/173f732b-7377-41f6-8c6f-2ae171f4da7a?auth=1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With