Font ‘Arial’ is not available to the JVM

  • Post author:
  • Post category:Java

If you are using JasperReports and in Linux getting an exception like:

net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. See the Javadoc for more details.

You will need to install the Microsoft fonts. In CentOS, here are the commands we ran to fix the issue.

yum install cabextract xorg-x11-font-utils

rpm -ivh https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.2-1.noarch.rpm

We restarted our web container and the things are back to normal.

This Post Has One Comment

  1. Chris

    The problem for us is that you can’t legally distribute / bundle these fonts without a license.

Comments are closed.