Marvin and JDK1.5

User dfeb81947d

18-10-2005 09:19:34

Dear Support,





We are actually using Marvin with JDK 1.4.2


But some IE client are using the JDK 1.5 plugin. And the pages containing the marvin Applet stopped because of errors.


Is Marvin applet compatible with JDK1.5?


Is there a workaround about Marvin and JDK1.5?





Thank you for your answers


Warmest Regards


Jacques

ChemAxon 7c2d26e5cf

18-10-2005 09:26:23

Yes, Marvin runs with Java 1.5.


Can you give me more info about your Marvin hanging problem?


A stack trace and a description about the details would be useful for us.

User dfeb81947d

18-10-2005 09:56:44

Dear Tamas,





I'm using MarvinSketch/AWT 4.0.1


With JDK 1.4.2_07 it works well


the JSP page containing the applet, load correctly.


But if I change the JDK to JDK 1.5.0_04 the applet even doesn't load.


In the Java Console, I have no Exception, no Trace, just:
Quote:
Call of the method JS : document


Call of the method JS : URL


Reference to the Class Loader : null


the applet is loaded via a javascript function that calls the one from


marvin.js


Code:



return '<script>'+


   'marvin_jvm="plugin";'+


   'marvin_gui = "awt";'+


   'msketch_name = "'+this.id+'";'+


   'msketch_begin("/AurQuest/marvin/",'+this.viewerWidth+',


               '+this.viewerHeight+');'+


   'msketch_param("molbg","'+this.viewerColor+'");'+


   'msketch_param("background","'+this.viewerColor+'");'+


   'msketch_param("undo","10");'+


   'msketch_param("reactionSupport","false");'+


   'msketch_param("preload", "MolExport");'+


   'msketch_param("detach", "hide");'+


   'mview_end();'+


'</script>';



Code:
return '<script>'+


   'marvin_jvm="plugin";'+


   'marvin_gui = "awt";'+


   'mview_name = "'+this.id+'";'+


   'mview_begin("/AurQuest/marvin/",'+


   this.viewerWidth+','+this.viewerHeight+');'+


   'mview_param("molbg","'+this.viewerColor+'");'+


   'mview_param("preload", "MolExport");'+


   'mview_param("editable", "2");'+


   'mview_end();'+


'</script>';






this code works under JDK 1.4.2 and not from JDK1.5





Do you have any idea?


Thank you so far





Warmest Regards


Jacques

ChemAxon 7c2d26e5cf

18-10-2005 10:35:08

I have tried this example with Java 1.5.0_02 in IE under Windows XP:


http://www.chemaxon.com/marvin/doc/dev/example-sketch1.1.html?jvm=builtin&gui=awt


It works for me. Does the above example work for you?


I have also tried your example (just modifed the codebase), see attached html.


It also runs for me.


If these examples do not run on your machine, it can be a JRE bug.

User dfeb81947d

18-10-2005 10:39:02

Dear Tamas,





I tried the examples found on Chemaxon website, and they work fine with JRE1.5.0.


So I guess there should be a problem in the call of the JavaScript or JSP that posts the applet.





I will investigate on this solution.





Thank you very much.


Kindest Regards


Jacques

ChemAxon 7c2d26e5cf

18-10-2005 10:53:26

I have got another idea. Probably, it is a caching problem.


You should clean the cache of the browser and the Java Plugin.


You can delete the cache of the Java Plugin by opening the Java Console and type an 'x' to clean cache.