x11fontmanager专题

Could not initialize class sun.awt.X11FontManager如何解决?

Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager 这个错误信息指出了一个嵌套异常 java.lang.NoClassDefFoundError,并且无法初始化类 sun.awt.X11Font

NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager

docker中使用poi,报上述错误。 DockerFile中执行 RUN apt-get update; apt-get install -y fontconfig libfreetype6 相关链接:  java - NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager - Stack Over