Hello All, I am trying to upgrade a Swing application ( http://toxtree.sourceforge.net/ ) to use recent versions of CDK and JChemPaint. An embedded JChemPaint had been used successfully since 2005, but I am having troubles with upgrading to recent JChemPaint 3.x versions. The code below uses cdk-1.3.4 and jchempaint-3.0.1:
IChemModel chemModel = DefaultChemObjectBuilder.getInstance().newChemModel(); chemModel.setMoleculeSet(chemModel.getBuilder().newMoleculeSet()); chemModel.getMoleculeSet().addAtomContainer(chemModel.getBuilder().newMolecule()); JChemPaintPanel jcp= new JChemPaintPanel(chemModel, JChemPaint.GUI_APPLICATION, false,null); Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.openscience.cdk.tools.ILoggingTool.debug(Ljava/lang/Object;Ljava/lang/Object;)V at org.openscience.jchempaint.JChemPaintMenuHelper.createMenu(JChemPaintMenuHelper.java:89) at org.openscience.jchempaint.JChemPaintMenuBar.addNormalMenuBar(JChemPaintMenuBar.java:84) at org.openscience.jchempaint.JChemPaintMenuBar.<init>(JChemPaintMenuBar.java:61) at org.openscience.jchempaint.JChemPaintPanel.customizeView(JChemPaintPanel.java:366) at org.openscience.jchempaint.JChemPaintPanel.<init>(JChemPaintPanel.java:146) I have tried unsuccessfully to use cdk-jchempaint-8/9.jar with cdk-1.3.4 , but it doesn't recognize org.openscience.jchempaint.renderer.* classes, and replacing these with org.openscience.cdk.renderer.* gives some compile errors. Any recommendation for correct dependencies between CDK and JChemPaint versions, or working examples of embedded JChemPaint will help a lot. Best regards, Nina Jeliazkova ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Cdk-user mailing list Cdk-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdk-user