Why do I get "Warning: the Graphics can not be determined"
The following warning and also an error might occur at runtime when using EasyXLS Excel library for Java:
Warning: the Graphics can not be determined
java.lang.InternalError: Can't connect to X11
Reason: No graphics is installed on UNIX system or headerless mode is enabled
The mentioned errors might occur on UNIX platforms.
The graphics is used to compute the column width or the row height. The dimensions are computed according to the graphic environment installed on the computer. If no graphics (like X11 graphics) is installed or the headerless mode is used then you will get the exception.
Possible solution #1: Set column width and row height manually
If no column width or row height is specified, they are automatically computed based on computer installed graphics. You can manually set the column width and the row height. This way the automatic columns resize no longer takes place.