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)
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.