I was able to successfully embed it in the SAGE web server.  Now for lots of 
code cleanup...

Jonathan
On Mar 20, 2012, at 7:43 PM, Robert Hanson wrote:

> OK, so I definitely learned something! 
> 
> On Tue, Mar 20, 2012 at 5:48 PM, Jonathan Gutow <[email protected]> wrote:
> Bob,
> 
> You did it!  My preliminary tests show it works.  I have to do some 
> modifications to get it embedded in Sage, but I think it will work fine.
> 
> Thanks,
> Jonathan
> 
> On Mar 19, 2012, at 9:53 PM, Robert Hanson wrote:
> 
>> OK, Jonathan. I think I found the problem. Please try what I just checked in 
>> -- do a build, and then use jmolData.jar instead of jmol.jar.  
>> 
>> Formerly:
>> 
>> JmolData.jar  -s foo.spt
>>    
>>    execute the script foo.spt with absolutely no graphics and no rendering, 
>> including no image creation
>> 
>> now:
>> 
>> JmolData.jar -s foo.spt
>> 
>>    execute the script foo.spt still with rending for image creation, just 
>> not for screen display
>> 
>> Jmoldata.jar -n -s foo.spt
>> 
>>   as before, now for performance enhancement, no graphics of any kind.
>> 
>> Let's see how that works. 
>> 
>> Bob
>> 
>> 
>> On Mon, Mar 19, 2012 at 8:30 PM, Robert Hanson <[email protected]> wrote:
>> If awt is not there, you are out of luck. But with the -n flag there is no 
>> creation of Display. But there might be a reference to it. Let me see. Based 
>> on this discussion: 
>> http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/  we 
>> should be able to do it. 
>> 
>> Bob
>> 
>> 
>> On Mon, Mar 19, 2012 at 6:06 PM, Jonathan Gutow <[email protected]> wrote:
>> Bob,
>> 
>> Thanks for trying...Your changes definitely reduce the error messages, but 
>> the application is still looking for screen dimensions somewhere in the tree 
>> after entering JmolPanel.  It is making a call to the awt package. I'm 
>> suspicious this is all associated with the allocation of a Display near line 
>> 242 in JmolPanel.
>> 
>> I've got a solution for Sage, but we should keep picking at this as more 
>> people would be able to use Jmol as a server side image generator.  Some 
>> people really don't like running a GUI on their servers.
>> 
>> Jonathan
>> On Mar 19, 2012, at 3:51 PM, Robert Hanson wrote:
>> 
>>> Could be I'm wrong.Try what I just checked in. Be sure to use the 
>>> 
>>> -ions t.spt
>>> 
>>> option (silent/no console/no graphics)
>>> 
>>> You  won't get THAT error. but will it create an image? I used this script:
>>> 
>>> load $tylenol
>>> write image 300 300 t.png
>>> 
>>> 
>>> Bob
>>> 
>>> 
>>> On Mon, Mar 19, 2012 at 7:55 AM, Gutow, Jonathan H <[email protected]> wrote:
>>> I dug a little and agree it would be a significant undertaking to make the 
>>> image generation work without the GUI.  That said, we might want to put 
>>> that on a long term to-do list.
>>> 
>>>  
>>> -- 
>>> Robert M. Hanson
>>> Professor of Chemistry
>>> St. Olaf College
>>> 1520 St. Olaf Ave.
>>> Northfield, MN 55057
>>> http://www.stolaf.edu/people/hansonr
>>> phone: 507-786-3107
>>> 
>>> 
>>> 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 email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here 
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> Jmol-developers mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>> 
>> 
>>                          Dr. Jonathan H. Gutow
>> Chemistry Department                                [email protected]
>> UW-Oshkosh                                          Office: 920-424-1326
>> 800 Algoma Boulevard                                FAX:920-424-2042
>> Oshkosh, WI 54901
>>                 http://www.uwosh.edu/facstaff/gutow
>> 
>> 
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Jmol-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>> 
>> 
>> 
>> 
>> -- 
>> Robert M. Hanson
>> Professor of Chemistry
>> St. Olaf College
>> 1520 St. Olaf Ave.
>> Northfield, MN 55057
>> http://www.stolaf.edu/people/hansonr
>> phone: 507-786-3107
>> 
>> 
>> 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
>> 
>> 
>> 
>> -- 
>> Robert M. Hanson
>> Professor of Chemistry
>> St. Olaf College
>> 1520 St. Olaf Ave.
>> Northfield, MN 55057
>> http://www.stolaf.edu/people/hansonr
>> phone: 507-786-3107
>> 
>> 
>> 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 email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here 
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Jmol-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-developers
> 
>                          Dr. Jonathan H. Gutow
> Chemistry Department                                [email protected]
> UW-Oshkosh                                          Office: 920-424-1326
> 800 Algoma Boulevard                                FAX:920-424-2042
> Oshkosh, WI 54901
>                 http://www.uwosh.edu/facstaff/gutow
> 
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
> 
> 
> 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 email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers

                         Dr. Jonathan H. Gutow
Chemistry Department                                [email protected]
UW-Oshkosh                                          Office: 920-424-1326
800 Algoma Boulevard                                FAX:920-424-2042
Oshkosh, WI 54901
                http://www.uwosh.edu/facstaff/gutow

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to