I'm using deployJava.js to include applets like so:
<script>
var attributes = {
name:'ForrestGump', id:'ForrestGump',
codebase:'java/', code:'ForrestGump',
cache_archive:'ForrestGumpSigned.jar',
cache_option:'Plugin',
initial_focus:false,
width:1, height:1 };
var parameters = { } ;
var version = '1.7.0' ;
deployJava.runApplet(attributes, parameters, version);
</script>
Some users using IE 11 (in Windows 7, I'm not sure about windows 8.1) have complained that it will automatically forward them to the Java download page (before the applet loads) even though the latest java is already installed. I have verified this by using both Java's Verification applet and by setting var version = '1.1'; in the js above which they say will won't force a specific version.
The verification applet tells me Java is installed, and even with version='1.1' it still redirects them. Another thing I noticed is that the Java Uninstall Tool doesn't load for them. It says java is not installed. Restarting the browser and the PC seem to have no affect on this.
Has anyone run into this before? Any advice on how I can disable deployJava from forwarding to the download page no matter what, or else an IE 11 workaround.
After some digging it appears that this is due to Microsoft changing the user agent that Internet Explorer 11 reports (see here). The "deployJava.js" library has it's own browser detection function (getBrowser()) and it does not handle the user agent for IE11 correctly.
The following bug reports from OpenJDK talk about this issue:
I tried the "official" version of deployJava.js (here) and it has not been updated with a fix yet. The suggested work-around is to modify the "getBrowser" method to look for "trident" in addition to "MSIE". If you don't want to wait for Oracle to make the update you could just create your own local copy of deployJava.js and replace:
(o.indexOf("msie")!=-1)
with
((o.indexOf("msie")!=-1)||(o.indexOf("trident")!=-1))