generate image without opening a display

ChemAxon 7c2d26e5cf

04-06-2004 16:50:45

To generate an image without opening a display, add the -Djava.awt.headless=true option to your Java command. E.g.:


Code:



java -classpath lib/MarvinBeans.jar -Djava.awt.headless=true chemaxon.formats.MolConverter


ChemAxon 7c2d26e5cf

16-07-2004 11:17:31

An alternative workaround for image generation problem:





You can use Xvfb virtual X11 server if there is not an X server on your machine.





Code:
Xvfb :2 -screen 0 649x480x24 2>>logfile &


export DISPLAY=:2






Its documentation can be found on the xfree86 site: http://www.xfree86.org/4.2.0/Xvfb.1.html