Bob Hanson wrote:
> Rajarshi Guha wrote:
>
>   
>> Hi, I have some code that brings up a JmolViewer with a IAtomContainer
>> object loaded into it. My code looks like:
>>
>>        JmolViewer viewer = jmolPanel.getViewer();
>>
>>        if (this.molecule != null)
>>            viewer.openClientFile("", "", this.molecule);
>>        else if (this.filename != null) {
>>        }
>>
>> However when I do this I am getting,
>>
>> Exception in thread "main" java.lang.NoSuchMethodError: 
>> org.jmol.api.JmolAdapter.getAtomSetCollectionAuxiliaryInfo(Ljava/lang/Object;)Ljava/util/Hashtable;
>>        at org.jmol.viewer.Frame.<init>(Frame.java:223)
>>        at org.jmol.viewer.ModelManager.setClientFile(ModelManager.java:78)
>>        at org.jmol.viewer.Viewer.openClientFile(Viewer.java:1157)
>>        at org.guha.rcdk.view.ViewMolecule3D.show(ViewMolecule3D.java:45)
>>
>> Looking at the sources I see that this method is indeed missing. 
>>
>>  
>>
>>     
> right, so that's new. Just add it as an empty method following the 
> abstract model in whatever you are using for the JmolAdapter equivalent:
>
>   public Hashtable getAtomSetCollectionAuxiliaryInfo(Object clientFile) {
>     return null;
>   }
>
>   
There should be no need, this method is already defined in the base 
class org.jmol.api.JmolAdapter.

Are you sure you have done a clean build ? no classes previously 
compiled before updating from SVN ?

Nico


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to