User 870ab5b546
02-03-2010 22:30:54
We have just upgraded to JChem and Marvin 5.3. We are having lots of problems.
(1) I have created customized templates, such as configurationNormal.xml, including a customized generic structures toolbar, generic.csmol. I replace the default delivered copy jchem/marvin/chemaxon/marvin/templates/generic.csmol with a symlink to my version. The configuration template works fine, except instead of my new generic toolbar template, it loads multiple copies of the ChemAxon toolbar. I'm attaching pictures of the Marvin 5.2 version and the Marvin 5.3 version as well as the configuration file. This forum won't let me make more than three attachments, so I pasted generic.csmol below.
Here is the code we use to launch the Marvin applet:
msketch_begin("/nosession/marvin", panelWidth, panelHeight);
if (isMechanism) {
msketch_param("menuconfig", "/nosession/configMech");
} else if (isSynthesis) {
msketch_param("menuconfig", "/nosession/configSynth");
} else if (is3D) {
msketch_param("menuconfig", "/nosession/config3D");
} else {
msketch_param("menuconfig", "/nosession/configNormal");
}
msketch_param("molbg", "#ffffff");
msketch_param("ttmpls1", "*Generic*chemaxon/marvin/templates/generic.csmol");
if (is3D) {
msketch_param("xtmpls", "chemaxon/marvin/templates/conformers.t");
} else {
msketch_param("tmpls6", ":Conformers:chemaxon/marvin/templates/conformers.t");
}
msketch_param("abbrevgroups", "/nosession/marvin/chemaxon/marvin/templates/ACE.abbrevgroups");
(In Marvin 5.2, all that was needed for the abbrevgroups file was the file name, but apparently in Marvin 5.3, we need the whole absolute path.)
Please tell me how to replace your generic template with mine in Marvin 5.3, like I could do in Marvin 5.2. (I saw something in your documentation about the template being in the jar file. Does that mean I can't replace it, like I could in Marvin 5.2? If so, I protest.)
(2) If I open the detached sketcher window upon launching Marvin 5.3, and then I close it, I do not get the ordinary attached sketcher window back. The parent Marvin window remains unchanged, showing only View and Help menus and no toolbars. If I click on the canvas, I get back the detached window. Not only is this behavior is different from Marvin 5.2.6, it is very limiting. Please fix.
(3) In JChem 5.2, there is one jchem jar file, called jchem.jar, in jchem/lib/ . In JChem 5.3, there are 16 additional jar files whose names begin with jchem. In JChem 5.2, there is one marvin jar file in jchem/marvin/ . In JChem 5.3, there are 39 MarvinBeans-* jar files in jchem/lib/ . Without symlinks to at least some of these jar files, we get runtime NoClassDefFound errors. Do we need symlinks to ALL of the jar files? Can't you make our lives easier by combining them all into a single jar file?
My version of generic.smol:
Cyclopentane
class M*03239812502D
5 5 0 0 0 0 0 0 0 0999 V2000
Z4kV-H5W60
96iV9s3W60
RsiVZX1W60
hIlVZX1W60
z2mV9s3W60
10201
20301
30401
40501
10501
M END
> <rotation.unit>
90
$$$$
Cyclohexane
class M*03239812442D
6 6 0 0 0 0 0 0 0 0999 V2000
000WGS2W60
iuzV8E1W60
iuzVun+V60
000WmZzV60
K72Wun+V60
K72W8E1W60
10201
20301
30401
40501
50601
10601
M END
> <rotation.unit>
90
$$$$
Cycloheptane
class M*09140910342D
7 7 0 0 0 0 999 V2000
2tzV2P3W60
v2yV6X2W60
DcxVSZ0W60
bsyVf++V60
Vt+Vf++V60
t70WSZ0W60
Bh-V6X2W60
10201
20301
30401
40501
50601
60701
70101
M END
> <rotation.unit>
90
$$$$
Benzene
class M*03239812442D
6 6 0 0 0 0 0 0 0 0999 V2000
000WGS2W60
iuzV8E1W60
iuzVun+V60
000WmZzV60
K72Wun+V60
K72W8E1W60
10201
20302
30401
40502
50601
10602
M END
> <rotation.unit>
30
$$$$