Friday, February 10, 2006

BufferedImage needs Display under Unix

problem:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

solution:

set java.awt.headless=true
System.setProperty("java.awt.headless","true");

unless your system needs a gui, then, you need to google.

No comments:

Post a Comment