Could not initialize class sun.awt.X11GraphicsEnvironment

From Open WiSQi


SQuORE Server fails to display any charts on the dashboard and the error "Could not initialize class sun.awt.X11GraphicsEnvironment" appears in the log file

Affected Versions

This issue may affect any version of SQuORE installed on a Linux Server system with no display attached. In this set up, it is sometimes necessary to install extra packages and modify the server startup script.

Fixing the Issue

  1. Install the package jfreechart on the server
  2. Install the package libaio1 on the server
  3. Modify the JAVA_OPTS variable in the server's script:

<INSTALLDIR>/Server/bin/, line 188:

JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"