I'm sorry, I wasn't completely clear. I do know that I can run it headless
using JmolData.jar, as you suggest, but then it doesn't actually print any
information when I run the following script on a CIF: "getProperty
modelInfo".

So when I run with Jmol.jar, using this invocation:

java -jar Jmol.jar -onj "load 1010938.cif; getProperty modelInfo"


I get a bunch of output to the console at the end like:

modelInfo.models *List[1]
modelInfo.models[1].atomCount 2
modelInfo.models[1]._ipt 0
modelInfo.models[1].name "1010938"
modelInfo.models[1].bondCount 1
modelInfo.models[1].file_model "1.1"
modelInfo.models[1].polymerCount 0

etc.

but when I run exactly the same script with JmolData.jar:

java -jar JmolData.jar -onj "load 1010938.cif; getProperty modelInfo"

in fact JmolData.jar gives me the same output as if I had just put in

java -jar JmolData.jar -onj "load 1010938.cif"

On Tue, Sep 16, 2014 at 7:56 PM, John Bowers <
[email protected]> wrote:

> I'm sorry, I wasn't completely clear. I do know that I can run it headless
> using JmolData.jar, as you suggest, but then it doesn't actually print any
> information when I run the following script on a CIF: "getProperty
> modelInfo".
>
> So when I run with Jmol.jar, using this invocation:
>
> java -jar Jmol.jar -onj "load 1010938.cif; getProperty modelInfo"
>
>
> I get a bunch of output to the console at the end like:
>
> modelInfo.models *List[1]
> modelInfo.models[1].atomCount 2
> modelInfo.models[1]._ipt 0
> modelInfo.models[1].name "1010938"
> modelInfo.models[1].bondCount 1
> modelInfo.models[1].file_model "1.1"
> modelInfo.models[1].polymerCount 0
>
> etc.
>
> but when I run exactly the same script with JmolData.jar:
>
> java -jar JmolData.jar -onj "load 1010938.cif; getProperty modelInfo"
>
> in fact JmolData.jar gives me the same output as if I had just put in
>
> java -jar JmolData.jar -onj "load 1010938.cif"
>
>
>
>
> On Tue, Sep 16, 2014 at 7:30 PM, Robert Hanson <[email protected]> wrote:
>
>> http://chemapps.stolaf.edu/jmol/zip/jmol-14.3.7_2014.09.16.zip
>>
>> I tested that with
>>
>> java -Djava.awt.headless=true -Xmx512m -jar "JmolData.jar" -ionj "load
>> mycif.cif;write t.png"
>>
>> and it worked fine. Pretty sure that's truly headless. No Swing, no AWT.
>> http://www.oracle.com/technetwork/articles/javase/headless-136834.html
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Want excitement?
>> Manually upgrade your production database.
>> When you want reliability, choose Perforce.
>> Perforce version control. Predictably reliable.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to