JVM version for Marvin

User 8139ea8dbd

18-06-2009 16:12:55

It seems Marvin requires at least Java version 1.5, however in the Marvin.js file, it says


if(applet_type == 1) {
                s = '<embed TYPE="application/x-java-applet;version=1.3"\n';
                s += ' PLUGINSPAGE="http://java.sun.com/products/plugin/1.3/plugin-install.html"\n';
        } else if(applet_type == 2) {
                s = '<object CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"\n';
                s += ' CODEBASE=" http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,3,0,0"\n'; />        } else {

Browsers with only JRE 1.3 or 1.4 will then probably try to render Marvin and fail?


 

ChemAxon 7c2d26e5cf

19-06-2009 11:39:29

Thanks for reporting this bug.


I have fixed it. Next release will include updated marvin.js.


I have updated marvin.js on the site. To change your local copy to the updated one, download it from the following URL: http://www.chemaxon.com/marvin/marvin.js

User 8139ea8dbd

19-06-2009 16:02:57

I guess for <embed> tag you want

type="application/x-java-applet;version=1.5.0"
       pluginspage="http://java.sun.com/j2se/1.5.0/download.html"/>

for <object> tag, you want to use

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        width="200" height="200"
        codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0" class="nt">>


So users are not forced to upgrade to 1.6, if 1.5 is sufficient. Many companies don't want their users to install the latest version.

ChemAxon 7c2d26e5cf

19-06-2009 16:26:11

We encourage our users to use the latest Java (1.6). But applet examples accepts both 1.5 and above versions. In our example, Java Plugin installation is offered if there is no Java on the client machine or its version is less than 1.5.0. Of course, you can change the URL of "pluginspage" attribute in your copy (depend on which Java version you recommend to your users).


By the way, the code that you have attached is not correct because it forces the users to use 1.5 since the settings of the type attribute does not accept the previously installed 1.6 plugins.


If you delete the last digit (zero) from the version number, both Java 1.5 and 1.6 plugins are accepted by the applet.


type="application/x-java-applet;version=1.5"