Added JVM option java.awt.headless=true.