-->

DEVOPSZONES

  • Recent blogs

    Caused by: java.lang.Error: Probable fatal error:No fonts found.

     I encountered this error while trying to install a third party Java application. The error is given below:

    Error

    Exception in thread "main" java.lang.Error: Probable fatal error:No fonts found.

    Caused by: java.lang.Error: Probable fatal error:No fonts found.

    Solution:

    Above you see an example error message shown by Java applications when fonts are missing in your operating system. Another indicator that fonts are missing are rectangle symbols shown instead of normal text. Both problems can usually be solved by installing the font packages

    Azul Zulu Builds of OpenJDK, Azul Zulu Prime Builds of OpenJDK and other OpenJDK installation packages do not include any font files by default. But all automatically use available fonts provided by the Operating System as high quality TTF files.


    Operating System Fonts

    On headless servers or small Linux installations like containers or embedded systems those operating system font packages are usually not installed by default. Here the commands to install a standard set of them:


    RHEL / Centos:

    sudo yum install fontconfig dejavu-sans-fonts dejavu-serif-fonts

    Ubuntu / Debian:

    sudo apt install fonts-dejavu fontconfig 

    SLES:

    sudo zypper install dejavu-fonts fontconfig


    [opc@ftp1 ftp-application]$ sudo yum install dejavu*

    Last metadata expiration check: 3:19:00 ago on Thu 23 Sep 2021 10:45:15 AM GMT.

    Package dejavu-fonts-common-2.35-7.el8.noarch is already installed.

    Package dejavu-sans-mono-fonts-2.35-7.el8.noarch is already installed.

    Dependencies resolved.

    ================================================================================================================================================================================================================

     Package                                                  Architecture                              Version                                          Repository                                            Size

    ================================================================================================================================================================================================================

    Installing:

     dejavu-lgc-sans-fonts                                    noarch                                    2.35-7.el8                                       ol8_appstream                                        1.1 M

     dejavu-sans-fonts                                        noarch                                    2.35-7.el8                                       ol8_baseos_latest                                    1.5 M

     dejavu-serif-fonts                                       noarch                                    2.35-7.el8                                       ol8_baseos_latest                                    805 k


    Ubuntu Linux, command to search for other font packages:

    apt search ^fonts-

    RHEL/CentOS 7, command to install a larger group of international fonts:

    sudo yum groupinstall Fonts


    No comments