Calling Marvin setMol using InChI problems on Safari MacOS

User 388dbbf610

27-02-2011 21:26:53

Hi,


 


I try to load a molecule in MarvinView using an InChI Name via


setMol(theinchiname,"inchi")


the htmlpage that contains the Javascript call is residing on a (IIS) webserver. All marvin classes are residing on the webserver as well.


this is the html tag for embedding Marvin


<applet   CODEBASE = http://myserver.com/myapp   code     = "chemaxon.marvin.applet.JMViewLaunch"  archive  = "appletlaunch.jar"/>


 


This works fine in all Browsers (INCLUDING Safari !) on Windows platform, but on Safari (version 5.0.3) on Mac OS (version 10.6.6) I get the following error:


Molfile cannot be loaded because an error occurred:


chemaxon.formats.MolformatException: Could not initialize class chemaxon.marvin.io.formats.inchi.Inchi


Any idea why Safari works fine on Windows , but on MAC OS it crashes , even though all Marvin classes are residing on a Webserver ??


Any help is appreciated.


Best regards


Hans-Juergen

ChemAxon 0a9e2a55e1

28-02-2011 14:45:47

Dear Hans-Juergen,


The error message sais it can not find the Inchi class, but it seems stange that if all jars are present java plugin on different operating systems see different classes in the jar. Is there any error messages on the console? Can You send the full stack trace?


Can You check if in the applet examples on the ChemAxon site (both MarvinSketch and MarvinView) You can get the inchi source of any molecule in Your Safari OS? (And if not than also any browser on windows platform.)


Best Regards,


Peter

User 873a9ae9d0

02-03-2011 10:23:34

Hi Peter,


I found some ChemAxon files on the local harddisk of the Macintosh computer and the problem might be due to this files. I do not know why those files are present (they are in the /Users/User/.ChemAxon folder) and I do not know how to 'uninstall' those files. I am a Windows specialist and have little knowhow about Mac computers. I do not know if a rm in terminal is a good idea and therefore I decided to leave the files where they are to prevent problems.  
Unfortunately I have no time to resolve the issue. In the meantime I changed my app to use a molfile instead of an InChI name an this works without problems. A clear sign that the problem is most likely related to the ChemAxon InChI classes (and some of the library files I found on the harddrive are clearly InChI related).


As stated I have no time to work anymore on this issue, now that I have a 'workaround'.


Thanks for your reply anyway


Have a good day
Hans-Juergen


 

ChemAxon 7c2d26e5cf

03-03-2011 14:51:14

The /Users/User/.chemaxon directory was created by MarvinSketch or MarvinView application by first usage.


They saves user settings (like display settings of sketcher/viewer or recent directory list) there. Your my templates are also stored there. You can delete it free if it is disturb you. Marvin creates the directory next time (if it does not exist). Of course, if you delete it, you lost your last Marvin settings. In this case, Marvin applications start with default settings.

User 873a9ae9d0

03-03-2011 15:30:48

Hi Tamas,


 


that's what I did expect. Question: Where does Marvin apps store such kind of information on Windows platforms ??


Next question: Why do I find inchi related classes in that location ?


Those in my opinion have nothing to do with user settings or application usage.


What is your opinion- can I expect to find inchi related classes in that location or not. If the latter, best might be to delete those files and check if the classes gets created again when a Marvin app is used. If those files are not created it is a strong sign that those files got incorrectly put in the named location (by whatever unknown reasons).


What do you think ?


Hans-Juergen   

ChemAxon 7c2d26e5cf

03-03-2011 16:01:45

On Windows system, you can find it in the chemaxon subdirectory of your home directory (E.g.: C:\Documents and Settings\User\chemaxon).


Marvin also caches certain native files (like InChi) that are required for running  in this directory. They are extracted there at runtime of Marvin components. You can also delete them. Marvin completes them if it is necessary.


 

User 873a9ae9d0

03-03-2011 16:09:57

Hi Tamas,


 


thanks a lot  for clarification. This is usefull to know.


Hans-Juergen