NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello listeners, I'm not sure if this will help, but here we go:The java.awt.headless property (since JDK 1.4.2) can perhaps be used. I quote:
Q: "...I find that when I run my application on Solaris or Linux it needs an Xserver.(...)"
A: "There are two possible solutions. For releases prior to 1.4 you can provide a "pseudo X-server" to emulate a display environment One of these X-server emulators is Xvfb, available for download at www.x.org.
The preferred solution for release 1.4 and later is to use the new headless AWT toolkit <http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless>. This new feature allows you to use the J2SE API in a server-side Java application without requiring you to have a GUI environment.
To specify the headless environment when using Sun Microsystem's reference implementation, run your application with this property:
-Djava.awt.headless=true
[http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html]Never did this with VisAD, but it might work. Well, it's a nice thing to know anyway.
Cheers, Ugo Valliappa Lakshmanan wrote:
If I create a JFrame and make it visible, then the off-screenrender works, i.e. if I add these two lines before the getImage(true) call:new javax.swing.JFrame().setVisible(true); then, the program runs to completion. Does VisAD *require* a visible component in order to do an off-screen render? Lak
-- l a t / l o n GmbH Meckenheimer Allee 176 53115 Bonn, Germany phone ++49 +228 732838 fax ++49 +228 732153 http://www.lat-lon.de http://www.deegree.org
visad
archives: