Q: When generating some report types on my UNIX server with no XServer, I get an exception "Can't connect to X11 server" or similar.
You can set the System property java.awt.headless=true to avoid this
problem. When running Ant, this is most easily achieved by using the ANT_OPTS environment variable:
export ANT_OPTS=-Djava.awt.headless=true
When running your code outside Ant, you may also need to set this system property.