Maybe I have messed something up... I get 

java.lang.NoSuchMethodError: org.openscience.cdk.Atom.getX3d()D
at
org.jmol.adapter.cdk.CdkModelAdapter$AtomIterator.getX(CdkModelAdapter.java:243)
at
org.openscience.jmol.viewer.datamodel.FrameBuilder.buildFrame(FrameBuilder.java:68)
at
org.openscience.jmol.viewer.managers.ModelManager.setClientFile(ModelManager.java:81)
at
org.openscience.jmol.viewer.JmolViewer.openClientFile(JmolViewer.java:1001)


I have included the following jars in my runtime config:

      <library name="jars/CDK/cdk-render.jar">
      <library name="jars/CDK/cdk-apps.jar">
      <library name="jars/CDK/cdk-core.jar">
      <library name="jars/CDK/cdk-experimental.jar">
      <library name="jars/CDK/cdk-extra.jar">
      <library name="jars/CDK/cdk-io.jar">
      <library name="jars/CDK/cdk-standard.jar">
      <library name="jars/CDK/cdk-test.jar">
      <library name="jars/CDK/cdk-libio.jar">
      <library name="jars/Jmol.jar">

I thought there was some kind of conflict since Jmol.jar includes a lot
of CDK-packages. Anyway, when I replace Jmol.jar with JmolApplet.jar,
all works fine when I do a viewer.openStringInline with a
SmarterModelAdapter. Can you make any sense of this?

Well, looking at the classes I see the following inconsistencies (if
that is what they are):

in my cdk-core.jar:
org.openscience.cdk.Atom:       getX2D()

in Jmol.jar
org.openscience.cdk.Atom:       getX2d()

Could this be the answer to this? How should I resolve this? I might be
using outdate cdk-core.jar but the Jmol.jar is taken from v10beta16...

What I would like is to have a Jmol and CDK in separate jars, maybe I
should take the time to build my own Jmol as well...

Thanks for the help!

    .../Ola


On Fri, 2004-11-12 at 15:34, E.L. Willighagen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Friday 12 November 2004 15:17, Ola Spjuth wrote:
> > I'm having conflicts between CDK and Jmol jars when I integrate them in
> > my SWT/Swing application. 
> 
> What kind of conflicts? I did not have those...
> 
> > On a proposal from Miguel, I tried using the 
> > latest JmolApplet (v10rel16) since it does not contain any
> > org.openscience.cdk classes, and it worked out just fine when using the
> > SmarterModelAdaptor. 
> 
> So using a file format interface?
> 
> > However, when trying out the examples for JmolCdk 
> > integration on the wiki (Thanks, Egon!) I needed to add the
> > org.jmol.adapter.cdk.CdkJmolAdapter class, which is not present in the
> > JmolApplet but only in Jmol.jar.
> >
> > So, my proposal is to add the CdkJmolAdapter to JmolApplet.jar too, 
> 
> That only makes sense if the applet could use the CdkJmolAdapter too, but I 
> don't think there is a <param> for that... 
> 
> And it would require something like:
> 
> <applet bla codeBase="JmolApplet.jar:cdk-io.jar" bla />
> 
> BTW, Miguel, did you ever work something out for
> 
> <applet bla codeBase="JmolApplet.jar:JmolAppletCMLExtension.jar" bla /> ?
> 
> where the second jar would contain the gnujaxp and CML stuff, and the first 
> not?
> 
> Egon
> 
> - -- 
> [EMAIL PROTECTED]
> - ---------------------------------------
> CDK: http://cdk.sf.net/
> JChemPaint: http://jchempaint.sf.net/
> Jmol: http://www.jmol.org/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (SunOS)
> 
> iD8DBQFBlMned9R8I9Yza6YRAj1kAJ0SueDeGZLxR1IrwYBJHSd90e9yHQCeOvTR
> spsR48exZr5idLooW4LbUpo=
> =RXip
> -----END PGP SIGNATURE-----
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
> _______________________________________________
> Jmol-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jmol-users



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to