Made ExceptionDialog.show(...) NOT create a Dialog if running in headless environments. In headless environments, the exception is printed to console. if (GraphicsEnvironment.isHeadless()) err.printStackTrace(); else ...