Hi Nina, JCP is working (I just checked) with a checkout of the EBI cdk repository at http://www.ebi.ac.uk/steinbeck-srv/git/cdk. This is cdk master plus some patches. Since JCP is no longer integrated to cdk and since git has the philosophy of many repositories existing in parallel, it is not and cannot be guaranteed to work with any other cdk code. Stefan
On Thursday 08 April 2010 20:31:09 Nina Jeliazkova wrote: > 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().newMolec >ule()); > > 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/O >bject;)V at > org.openscience.jchempaint.JChemPaintMenuHelper.createMenu(JChemPaintMenuHe >lper.java:89) at > org.openscience.jchempaint.JChemPaintMenuBar.addNormalMenuBar(JChemPaintMen >uBar.java:84) at > org.openscience.jchempaint.JChemPaintMenuBar.<init>(JChemPaintMenuBar.java: >61) at > org.openscience.jchempaint.JChemPaintPanel.customizeView(JChemPaintPanel.ja >va: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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/cdk-user -- Stefan Kuhn B. Sc. M. A. Software Engineer in the Chemoinformatics and Metabolism Team European Bioinformatics Institute (EBI) Wellcome Trust Genome Campus Hinxton, Cambridge CB10 1SD UK Phone +44 1223 49 2657 Fax +44 (0)1223 494 468 ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

