Custom calculator Plugin

User 7b0ee04e66

22-04-2010 14:18:58

Good afternoon


I am following the instructions from the custom plugin found here


https://www.chemaxon.com/marvin/examples/plugin-dev/index.html


I have created the SelectionPlugin.jar file, saved it under the MarvinBeans/plugins directory and created a plugin.properties file.


When I open Marvin Sketch (5.3.1), I can see the Selection menu, but when I click on it, the following error appears:


Cannot get OptionsPane: Selection


chemaxon.marvin.plugin.PluginException: No class specified for plugin: Selection
 at chemaxon.marvin.plugin.PluginFactory$PluginRecord.readClassName(Unknown Source)
 at chemaxon.marvin.plugin.PluginFactory$PluginRecord.loadParameterPanel(Unknown Source)
 at chemaxon.marvin.plugin.PluginFactory$PluginRecord.loadOptionsPane(Unknown Source)
 at chemaxon.marvin.plugin.PluginFactory$PluginRecord.getOptionsPane(Unknown Source)
 at chemaxon.marvin.plugin.PluginFactory.getOptionsPane(Unknown Source)
 at chemaxon.marvin.plugin.CalculatorPluginManager.runPlugin(Unknown Source)
 at chemaxon.marvin.plugin.CalculatorPluginManager.callback(Unknown Source)
 at chemaxon.marvin.plugin.PluginManager.callback(Unknown Source)
 at chemaxon.marvin.common.swing.MolPanel$5.run(Unknown Source)


I must have forgotten something or done something wrong ? Can you help ?


Thanks


Catherine


PS - Running on a Windows PC (XP) with Java 1.6.0_16

ChemAxon e08c317633

22-04-2010 14:49:04

Hi Catherine,


Could you attach your plugins.properties, and SelectionPlugin.jar files?


Zsolt

User 7b0ee04e66

22-04-2010 14:55:20

Hi


I have attached the files requested.


Thanks


Catherine

ChemAxon e08c317633

26-04-2010 08:10:10

Hi Catherine,


I attached the corrected SelectionPlugin.jar file, and the java sources and other files it was created from.


I created the jar file by executing the command


jar cmf SelectionPlugin.txt SelectionPlugin.jar com/evotec/selectionplugin/SelectionPlugin.class com/evotec/selectionplugin/SelectionPluginDisplay.class xjars/SelectionPluginParameters.xml

from the src directory I attached (zipped).


The plugins.properties file is the same you posted before.


Regards,


Zsolt

User 7b0ee04e66

26-04-2010 08:31:19

Hi Zolt,


Thanks for your help


Catherine