OK, there is a problem with headless - (by the way, that should require
JmolData.jar, not Jmol.jar) and I will look into that.

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

> I am trying to extract some information from a CIF file using JMol from
> the command line on a server.
>
> PHP is executing the JMol jar file and then I just need to get the
> information into STDOUT.
>
> For instance:
>
> java -jar Jmol.jar -onj "load mycif.cif; getProperty modelInfo"
>
> raises a java.awt.HeadlessException because, I suppose, even though the -n
> flag is set, one of the objects created by JMol is an AWT or Swing object.
>
> So then I tried switching to JmolData.jar, but the getProperty modelInfo
> command doesn't work when that is run. For some reason, none of the
> modelInfo.XXXX[] appear in the console output. How can I get JmolData.jar
> to give me this information?
>
> Thanks,
> John
>
>
> ------------------------------------------------------------------------------
> 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
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
------------------------------------------------------------------------------
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