Hi Stefan,

I've more or less managed to get it working with cdk-1.3.3 (not 1.3.4)
and jchempaint-3.0.1 ; there are few minor issues I'll be reporting later.

Stefan Kuhn wrote:
> 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.
>   
This sounds quite scary - isn't it possible to at least define
dependencies between released packages - for example maven is excellent
at supporting these - I would be glad to help with.
I am sure I am not the only one who would like to use cdk library and
jchempaint in third party applications.

Best regards,
Nina
> 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&#174; 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
>>     
>
>
>
>   

------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to