"Save" and "Save As" Disabled, How do I

User 7fe7cbcd5f

28-11-2005 17:01:00

I recently upgraded from v4.0 to v4.0.3 and my Open/Save/SaveAs functionality in MSketch is disabled. I can't seem to pass any applet parameters to enable those features. Any help is very much appreciated. Here is my applet definition in my file:


<script LANGUAGE="JavaScript1.1" SRC="js/structure/marvin.js"></script><---This was updated as well from the new distribution.


<script LANGUAGE="JavaScript1.1">


<!--


mview_mayscript = true;


msketch_name = "MSketch";


msketch_begin("http://localhost/applet/", 180, 180);


msketch_param("preload", "MolExport,SmilesExport,GraphInvariants,Parity");


msketch_param("bgcolor", "#F7F7F7");


msketch_param("molbg", "#F0F0F0");


msketch_param("dispopts", "implicitH=off");


msketch_param("queryatoms", "any,hetero,list,notlist");


msketch_param("extrabonds", "arom,any,1or2,wedge,either,ctu");


msketch_param("undo", "50");


msketch_param("detach", "hide");


msketch_end();


//-->


</script>





It's pretty straight forward. It worked with this same definition before I upgraded now it doesn't. Am I missing something? I attached an image of the menu so you can see what I mean.

ChemAxon 7c2d26e5cf

28-11-2005 22:23:39

The reason of your problem can be one of the following options:


1. You are using an unsigned jar.


2. One or more jar files are missing from the Marvin directory.


3. Browser/Java caching problem.





1. The "Open" and "Save" menus are disabled if the applet is unsigned.


In default, the Swing version of Marvin Applets are signed. The signed information of the jar files is damaged when the content of the jar files are modified. It means that a signed jar is rewrapped, the jar file stops being signed.


Are you sure that original jmarvin.jar or any other jars are not modified in the Marvin package?





2. To run Marvin applets, jmarvin.jar is not enough. You need the whole Marvin directory.


In the following topic, you can read more about which files are required for running Marvin applets.


http://www.chemaxon.com/forum/ftopic64.html





3. An earlier Marvin version may be in the CLASSPATH (of your browser or of your Java): the codes of the old and the new Marvin versions are confused. You can solve this problem by cleaning both the browser's and JRE's cache and restarting the browser.


In the following topic, you can find more info how you can do this:


http://www.chemaxon.com/forum/ftopic556.html