OK, that's fixed for 11.5.39. At least for the JmolSimpleViewer 
interface, it could be fixed. (I don't know if that is what you are 
using or not.)

Mostly, though, it is a result of not calling

  viewer.evalString("ZAP");

just after allocating the viewer object. This is required prior to the 
first loading of a model (and several other commands).

If using the JmolViewer interface instead, you can replace that with

 viewer.setAppletContext("",null,null,"someCommandLineOptions")

which allows carrying over various command line options to the viewer.

I suspect that's not particularly well documented. I've added some more 
notes in the Integration example as well as in the API classes.

Bob


Matteo Riondato wrote:

>On Sat, May 31, 2008 at 02:56:49PM -0500, Bob Hanson wrote:
>  
>
>>can't work on this immediately, but please send that file to me offline 
>>so I can try that myself -- unless it does it with any file. Are you 
>>using the latest release? 11.5.38? All this command does is send the 
>>script command
>>
>>  load "/archivio2/rionda/uni/3d/1grz.pdb"
>>    
>>
>
>Yes, I'm using 11.5.38 and I get the same Exception with any file.
>I worked this around using
>viewer.loadInline(viewer.getFileAsString("/archivio2/rionda/uni/3d/1grz.pdb"));
>Best regards
>  
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to