Marvin Applet and IE 11

User 8170b160d9

16-10-2013 09:42:07

When I use IE 11 to browse page embeded Marvin Applet, it will say


the java plugin is lower than 1.6, indeed java 1.7 is installed. and


when I use chrome, it works. so what's can i do?

User 761d9eb85b

21-10-2013 11:03:46

I confirm to have the same problem. Hope chemaxon can find a solution quickly.

ChemAxon 2c555f5717

22-10-2013 00:16:54

Dear All!


   The official JavaScript support to identify Java version (that we use) fails with Internet Explorer 11. We are working on a solution. Thank you for your precious report.


Regards:
Balázs 

ChemAxon 7936325a45

25-10-2013 09:40:33

Dear All!



First of all, thank you for your patience.



The source of this problem is that the new IE has a new User-Agent
String
(http://msdn.microsoft.com/en-us/library/ie/bg182625%28v=vs.85%29.aspx).
The guys at Oracle have a JavaScript called deployJava.js that supposed
to use for Java version detection, so the marvin.js file contains the
deployJava.js source. This JavaScript can not handle the new IE because
the new User-Agent String.



There is an unofficial workaround for this problem, that we tried and it
worked. There are to options for applying the solution:



1., Apply the attached patch on the marvin.js file

OR

2., Make the following change on marvin.js file:

    -Search for "browser.indexOf('msie')!=-1" (without " characters)

    -You should have one match

    -Replace "browser.indexOf('msie')!=-1" with
"(browser.indexOf('msie')!=-1)||(browser.indexOf('trident')!=-1)"
(without " characters)



I hope this works for you as well.

Regards:

István



PS.: Hopefully Oracle will come out with an official patch of the
deployJava.js soon. 

User 249192efae

06-12-2013 21:39:37

I have this issue too. I tried the fix from @istvanori (version 2 with the manual edit) but it didn't work for me.


In IE11 Developer Tools, I put in a breakpoint at that spot, and I saw that it stepped into the following brace to execute deployJava.browserName='MSIE'; etc, but the page still shows me the "java plugin is lower than 1.6" message, and I have the latest: 7_45


Has anyone else found a fix for this, or is there a new Marvin Jar with a working fix?

User 7c93c0ac59

10-12-2013 00:41:34

One of our users hit the same issue and like MichaelChambers pointed out, the patch was not sufficient.


In addition, I had to make another modification to marvin.js


Search for "!ActiveXObject" and replace it with "window.ActiveXObject === undefined" (without the double quotes)


This change is required because of a difference in the way ActiveXObject behaves in IE11 as discussed here and here.


David

ChemAxon 2c555f5717

10-12-2013 08:24:12

Dear David!


   Thank you for this remark! I hope, this will help others to solve this issue.


Regards:
Balázs 

User 249192efae

04-01-2014 04:18:05

Thanks David! Yes, with the two fixes, the applet now loads in IE11.


(I happened to also break Marvin in all my browsers by unchecking Java's "[] Keep temporary files on my computer" setting when trying to debug the IE11 issue. As that caused all my browsers to fail, I gave up on this for a while.)


 


So now I've got it working nicely in IE11, as well as working again in Chrome, and Firefox.


Thanks!

ChemAxon 5433b8e56b

07-01-2014 10:55:38

Hi Michael,


thank you for reporting this, I have filed an issue into our issue tracking system, we will investigate the applet behaviour with java side cache turned off, although this will not be our highest priority in the near future.


We will notify you in this topic if we have a solution.


Regards,
Istvan 

User 761d9eb85b

15-01-2014 10:02:21

Hi,


After this morning a new update of Java 7u51, Marvin do not launch with IE 11 again.


I don't know why they just do not stop making trouble, but if you find some solution, I would be glad to know it.


Thanks !


Ning

ChemAxon 7936325a45

15-01-2014 11:23:29

Dear Ning!

I tried to reproduce the error, but everything works fine for me (IE11 with Java7u51).

Can you specify the applet version?

Thanks,
István Őri 

User 761d9eb85b

15-01-2014 11:32:58

Hi István,


The applet is MarvinSketch 6.1.3,


My version of IE is 11.0.9600.16476 with Windows 8.1 pro.


When I try http://www.chemaxon.com/marvin/examples/applets/sketch/embed.html


It says "The version number of the Java plugin is lower than 1.6.Current Marvin requires at least version 1.6."


When I try to verify Java from https://www.java.com/en/download/installed.jsp


It says "A security prompt may appear. Click Run to allow the verification process to continue.


Depending on your system settings, you may need to respond to prompts to allow the verification to continue."


But I see no prompt to click.


Everything worked yesterday.


Thanks!


Ning

User 249192efae

15-01-2014 15:31:06

I uninstalled the prior Java 7, then went directly to the Oracle/Java site and installed the latest. After doing so, IE11 with my modified marvin.js works fine with the Java 7_51 JRE.

ChemAxon 7936325a45

15-01-2014 16:05:16

Dear MichaelChambers!


Thank you for your comment, I hope this helps others.

Regards,
István Őri 

ChemAxon 7936325a45

15-01-2014 16:33:52

Dear Ning!


Unforunately on chemaxon.com we didn't apply the patch to the marvin.js file. We are working on it.


UPDATE: marvin.js file is patched in the examples on chemaxon.com!



Regards,
István Őri 

User 761d9eb85b

15-01-2014 17:01:53

Just tried the solution.


After uninstalled Java and restart PC then reinstalled Java from web of Oracle, it works now.


Thank you all !


 


Ning

User 247a2c5018

30-01-2014 16:24:22

Hi, 


 


i have the same problem with IE 11 and Marvin view 6.1.6 => The version number of the Java plugin is lower than 1.6.Current Marvin requires at least version 1.6.


MarvinSketch 6.1.6 is displayed correctly.


 


 


Kiet

User 247a2c5018

30-01-2014 16:28:11

java version is : 1.7_51

ChemAxon 2c555f5717

06-02-2014 15:51:09

Dear TRAN-MINH!


   Please replace your marvin.js file to the latest one (that you can find here: http://www.chemaxon.com/marvin/marvin.js ) Previously Oracle did not provide any acceptable solution for Internet Explorer 11, but this JavaScript file now has the latest, official script to detect Java version correctly.


Regards:
Balázs 

User 247a2c5018

06-02-2014 16:02:49

Ok thanks!


it works now with IE11

User 46924c5277

12-02-2014 00:43:50










bzaicsek wrote:

   Please replace your marvin.js file to the latest one (that you can find here: http://www.chemaxon.com/marvin/marvin.js ) Previously Oracle did not provide any acceptable solution for Internet Explorer 11, but this JavaScript file now has the latest, official script to detect Java version correctly.


Regards:
Balázs 



I'm still having the problem with that version of marvin.js.  The culprit appears to be that the testUsingActiveX function doesn't work properly. Making the change suggested above to the check for ActiveX doesn't seem to help. Getting rid of that check entirely does enable it to work.


Here's the version of testUsingActiveX that I'm actually using in order to get Marvin to work in IE 11.  I don't know enough about JavaScript and ActiveX to know if I'm committing some horrible sin here against browsers that claim to be IE but don't support ActiveX (or why this is even actually important).


testUsingActiveX : function (o) {


var q = "JavaWebStart.isInstalled." + o + ".0";


try {


return (new ActiveXObject(q) != null)


} catch (p) {


return false


}


},


 


(Edit: Since posting this I've noticed that if I'm running JRE 7u51, MarvinSketch version 6.2 as distributed works fine in IE 11. However, I'm still using JRE 7u5 on most of our computers and I suspect many other people may be as well, because of horrible, horrible performance issues with newer JRE versions.)

ChemAxon 2c555f5717

17-02-2014 11:29:43

Dear Bfunchess!


   We are happy to hear that you could found a workaround to start the Marvin Applet, however we still can not encourage you or any other users to run an outdated Java copy, because it can expose your computer to major security threats.


Regards:
Balázs 

User 249192efae

20-06-2014 18:21:07

Thanks Bfunchess.


I'm having the same problem when trying to upgrade to the latest Marvin, though I'm using the latest Java 7_60.


Your solution works for me too. I tried several versions of checking for ActiveXObject and they all returned as if it didn't exist, though it does. So I've stripped out the check and it runs fine, since any error would be caught by the try anyway and then return false.


I wonder if perhaps it is the Windows version that is the difference. I'm on Windows 7 Pro.

User 249192efae

23-06-2014 14:43:45

Bfunchess,


My latest issue with Marvin not working with IE11was because the Deployment Toolkit was not enabled. Perhaps you may find that issue on computers where the latest applets and latest marvin.js are not working.


See https://www.chemaxon.com/forum/viewpost57111.html#57111