Jump to content
Changes to the Jaspersoft community edition download ×

Font 'Arial' is not available to the JVM. See the


nibedita

Recommended Posts

Hello All

       I create a  jasper reports which is run in windows but when i run that application in Linux it gives the corresponding error which i mentioned below.   Please help me its urgent.   

 

net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. See the Javadoc for more details.
    at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:321)
    at net.sf.jasperreports.engine.util.JRStyledText.getAwtAttributedString(JRStyledText.java:226)

 

Thanks

  Nibedita

Link to comment
Share on other sites

  • Replies 11
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 years later...
  • 3 weeks later...
  • 2 months later...

I have resolved this like this:

first get the microsoft core fonts. In Ubuntu 12.04 this package is called: ttf-mscorefonts-installer

After install you can see the fonts in: /usr/share/fonts/truetype/msttcorefonts

copy all the ttf files to your JAVA_HOME/jre/lib/fonts

I had to do a restart of iReport to be resolved of the error.

 

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
  • 5 years later...

Thanks a lot, it is 2019 and I was having this problem... the solution was:

sudo apt-get install ttf-mscorefonts-installer

cp -r /usr/share/fonts/truetype/msttcorefonts $JAVA_HOME/lib/fonts

sudo dpkg-reconfigure fontconfig

Make sure that $JAVA_HOME is used by your application, otherwise you will need to copy those fonts folder over all jvm avaiable on the machine

Reference: http://www.perfectabstractions.com/blog/how-to-install-windows-fonts-in-java-on-linux

Link to comment
Share on other sites

Thanks a lot, it is 2019 and I was having this problem... the solution was:

sudo apt-get install ttf-mscorefonts-installer

cp -r /usr/share/fonts/truetype/msttcorefonts $JAVA_HOME/lib/fonts

sudo dpkg-reconfigure fontconfig

Make sure that $JAVA_HOME is used by your application, otherwise you will need to copy those fonts folder over all jvm avaiable on the machine

 

Link to comment
Share on other sites

  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...