Java Can’t connect to X11 window server using ‘localhost:10.0’ as the value of the DISPLAY variable

You need to specify the -Djava.awt.headless=true parameter at startup time.

Leave a Comment