Font ‘Arial’ is not available to the JVM

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.


1 Comment

  1. Chris says:

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


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>