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

2

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

nibedita's picture
Joined: Nov 19 2008 - 1:52am
Last seen: 1 year 3 weeks ago

8 Answers:

2

Install the fonts you need (like msttcorefonts).

http://mondaybynoon.com/2007/04/02/linux-font-equivalents-to-popular-web-typefaces/



Post Edited by thangalin at 01/14/2010 22:32
thangalin's picture
240
Joined: Apr 21 2008 - 4:34am
Last seen: 6 years 8 months ago
0

 

 

Thanks

 I try to solve the problem using your solution

 

Thanks

 Nibedita

nibedita's picture
Joined: Nov 19 2008 - 1:52am
Last seen: 1 year 3 weeks ago
0
asejas's picture
34
Joined: Oct 26 2007 - 2:33am
Last seen: 7 years 1 month ago
0

  Copy your Fonts on the following directory JDK_HOME\\jre\\lib\\fonts

akqz's picture
2
Joined: Feb 12 2012 - 9:03am
Last seen: 2 years 10 months ago
0

Nibedita,

I also have similar issue in AIX environment. Did your problem resolved?

arijit's picture
3
Joined: Mar 5 2012 - 2:46am
Last seen: 1 year 3 months ago

hi Nibedita, do you solve this?

sarjuanca - 4 months 3 weeks ago
0

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.

 

theetlavenger's picture
Joined: May 7 2012 - 3:06am
Last seen: 2 years 7 months ago
0
Go Here, I believe this is has updated fonts. Many other posts
had links that were no longer valid or older versions.
 
For me I was missing this last step which the instruction on sourceforge had
rpm -ivh $HOME/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm
 
ktroendle's picture
Joined: Apr 7 2014 - 7:25pm
Last seen: 8 months 2 weeks ago
0

Here is a blog post that shows how to add and use Microsoft fonts in Java on Linux: How to Install Windows Fonts in Java on Linux.

 

nick_18's picture
Joined: Jul 28 2014 - 2:13pm
Last seen: 4 months 3 weeks ago
Feedback