nibedita Posted January 13, 2010 Share Posted January 13, 2010 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 More sharing options...
nibedita Posted January 15, 2010 Author Share Posted January 15, 2010 Thanks I try to solve the problem using your solution Thanks Nibedita Link to comment Share on other sites More sharing options...
asejas Posted January 20, 2010 Share Posted January 20, 2010 This post could help:http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=68624 Link to comment Share on other sites More sharing options...
akqz Posted February 14, 2012 Share Posted February 14, 2012 Copy your Fonts on the following directory JDK_HOME\jre\lib\fonts Link to comment Share on other sites More sharing options...
arijit Posted March 5, 2012 Share Posted March 5, 2012 Nibedita,I also have similar issue in AIX environment. Did your problem resolved? Link to comment Share on other sites More sharing options...
theetlavenger Posted May 23, 2012 Share Posted May 23, 2012 I have resolved this like this:first get the microsoft core fonts. In Ubuntu 12.04 this package is called: ttf-mscorefonts-installerAfter install you can see the fonts in: /usr/share/fonts/truetype/msttcorefontscopy all the ttf files to your JAVA_HOME/jre/lib/fontsI had to do a restart of iReport to be resolved of the error. Link to comment Share on other sites More sharing options...
ktroendle Posted April 8, 2014 Share Posted April 8, 2014 Go Here, I believe this is has updated fonts. Many other posts had links that were no longer valid or older versions. http://corefonts.sourceforge.net/ 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 Link to comment Share on other sites More sharing options...
sarjuanca Posted July 28, 2014 Share Posted July 28, 2014 hi Nibedita, do you solve this? Link to comment Share on other sites More sharing options...
nick_18 Posted July 28, 2014 Share Posted July 28, 2014 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. Link to comment Share on other sites More sharing options...
tadeu Posted August 2, 2019 Share Posted August 2, 2019 Thanks a lot, it is 2019 and I was having this problem... the solution was:sudo apt-get install ttf-mscorefonts-installercp -r /usr/share/fonts/truetype/msttcorefonts $JAVA_HOME/lib/fontssudo dpkg-reconfigure fontconfigMake sure that $JAVA_HOME is used by your application, otherwise you will need to copy those fonts folder over all jvm avaiable on the machineReference: http://www.perfectabstractions.com/blog/how-to-install-windows-fonts-in-java-on-linux Link to comment Share on other sites More sharing options...
tadeu Posted August 2, 2019 Share Posted August 2, 2019 Thanks a lot, it is 2019 and I was having this problem... the solution was:sudo apt-get install ttf-mscorefonts-installercp -r /usr/share/fonts/truetype/msttcorefonts $JAVA_HOME/lib/fontssudo dpkg-reconfigure fontconfigMake 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 More sharing options...
rgarcialvarez Posted June 13, 2020 Share Posted June 13, 2020 For linux fedora 30 only create directory truetype on /usr/share/fontscd /usr/share/fonts mkdir truetypeand copy fonts from windows/fonts to directory you created Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now