> Hi, I downloaded Jmol from CVS (and my CDK CVS is also up to date) but
> compiling CDKIntegration.java gives me the following error:
>
> CDKIntegration2.java:27: cannot find symbol
> symbol  : class JmolViewer
> location: package org.jmol.viewer
> import org.jmol.viewer.JmolViewer;
>                        ^
> CDKIntegration2.java:106: cannot find symbol
> symbol  : class JmolViewer
> location: class JmolPanel
>     JmolViewer viewer;
>
> [snip]

Sorry, I have not looked at the CDKIntegration examples.

> Grep'ing the sources I find that JmolViewer exists
> in /src/org/jmol/api/JmolViewer.java and
> not /src/org/jmol/viewer/JmolViewer.java
>
> But changing the path and recompiling gives me an error:
>
> CDKIntegration2.java:111: org.jmol.api.JmolViewer is abstract; cannot be
> instantiated
>         viewer = new JmolViewer(this, adapter);
>                  ^
> Any pointers to how I can get a viewer are appreciated

Hmmm ... looks like this is failing me ... I will need to rethink/redo
this 'api' layer.

For now, do the following:

import org.jmol.api.JmolViewer;
import org.jmol.viewer.Viewer;
...
JmolViewer viewer = new Viewer(awtComponent, modelAdapter);


Be advised that I *will* need to change this.


Miguel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to