MarvinSketch opens Image problem

User 806b42cf04

29-02-2012 07:06:38

Dear all,


     I want to label bond length using my picture(pgn,tif,bmp,etc). When I open these images in MarvinSketch, the problem occurs as follows:


ERROR:
Internal error: cannot create new instance for the osraimage importer module

STACK TRACE:
chemaxon.formats.MolFormatException: Internal error: cannot create new instance for the osraimage importer module
    at chemaxon.formats.MolImporter.init(MolImporter.java:553)
    at chemaxon.formats.MolImporter.<init>(MolImporter.java:138)
    at chemaxon.marvin.sketch.swing.SketchPanel.doOpenImage(SketchPanel.java:1652)
    at chemaxon.marvin.sketch.swing.actions.OpenImageAction.actionPerformed(OpenImageAction.java:34)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732)
    at java.awt.Component.processMouseEvent(Component.java:6101)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
    at java.awt.Component.processEvent(Component.java:5866)
    at java.awt.Container.processEvent(Container.java:2105)
    at java.awt.Component.dispatchEventImpl(Component.java:4462)
    at java.awt.Container.dispatchEventImpl(Container.java:2163)
    at java.awt.Component.dispatchEvent(Component.java:4288)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
    at java.awt.Container.dispatchEventImpl(Container.java:2149)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4288)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.io.IOException: OSRA is not available on your computer.
    at chemaxon.marvin.io.image.importer.ImageImportModule.initMolImport(ImageImportModule.java:119)
    at chemaxon.marvin.io.MRecordImporter.<init>(MRecordImporter.java:286)
    at chemaxon.formats.MolImporter.init(MolImporter.java:543)
    ... 30 more


Please suggest me how can Ido? Thank you in advance. Waiting for your kind reply.

ChemAxon 5433b8e56b

02-03-2012 13:54:08

Hi,


can you be a bit more specific on what are you want to do?


Do you want to open an image that contains a chemical structure, or open some images to place around the stracture that has been created in Sketch, and use that images as graphical elements around the structure?


If I understand well you want to use the second option, and in this case i have bad news, because currently MarvinSketch is not supporting this way of editing, and it is impossible to add an image to the current sketch inside Marvin.


If you are trying the other approach and want to open an image that contains a chemical structure, then you have to have the OSRA utility installed on your system. To install and setup OSRA for Marvin you can find information here.


Regards,
Istvan