Java JDK / JRE Headless

System.setProperty("java.awt.headless", "true");
 
 
or
 
java -Djava.awt.headless=true