I was getting "Font 'Arial' is not available to the JVM. See the Javadoc for more" this error in Ubuntu.
To fix it I install ttf-mscorefonts-installer package using apt-get
Then cp /usr/share/fonts/truetype/msttcorefonts/*.ttf JAVA_HOME/jre/lib/fonts/