Cannot load font in JRE 8

后端 未结 7 2007
别那么骄傲
别那么骄傲 2020-12-15 06:10

I cannot load a font from an S3 Inputstream in JRE 8. I do not have issue if a system is installed with JRE 7, JDK 7, or even JDK 8.

val fontInputStream = s3         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 07:07

    It turns out that this is a problem with the openjdk-8-jre-headless installation. This is the installation in the Docker image for java 8 JRE. I simply install openjdk-8-jre (without headless) and the problem goes away.

    If you look at the error log, the loading of the font require awt X11, which is missing from headless version of JRE.

提交回复
热议问题