Context: Scenario is likely to occur in Linux environments *with no UI, attempting to export to an Excel file from an xDM collection results in an error vs successful export. Reviewing the error log, users may encounter errors similar to the one below, indicating an issue initializing specific classes.

Description of Error (Stack Trace/PDE Log)

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager

at java.base/java.lang.Class.forName0(Native Method)

at java.base/java.lang.Class.forName(

at java.desktop/sun.font.FontManagerFactory$

at java.base/ Method)



at java.desktop/java.awt.Font.getFont2D(

at java.desktop/java.awt.Font.canDisplayUpTo(

at java.desktop/java.awt.font.TextLayout.singleFont(

at java.desktop/java.awt.font.TextLayout.<init>(


The root cause of this issue is commonly found to be missing libraries, creating a scenario where FontManager class cannot be located and subsequently used. Scenario is common on Linux machines with no installed UI (headless).

Resolution: Resolve this issue by installing the missing packages, additional context on error and proposed solutions available in reference article.