saman0suke Posted January 15, 2011 Share Posted January 15, 2011 I recently upgraded from iReport 3.0.0 to iReport 3.7.6, I had to changed the iText.jar and jasperreports.jar to the latest version (3.7.6) to make it work, but the oldest reports are giving me this error:net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '' is not available to the JVM. See the Javadoc for more details.Most of the new reports works with no problem except for the old ones.......I changed the parameter: net.sf.jasperreports.awt.ignore.missing.font true But I still receive the same error, I don't want to go back to old iReport and jasperreport version, is there anything else I need to do? thanks in advanced, have a nice day! UPDATE: I just managed to make it work, however, the solution is too complex, I checked the XML of the report and found this:<font fontName="" size="10" isBold="true" pdfFontName="Helvetica-Bold"/>I'm assuming that jasperreports.jar (version 3.0.0) was reading the pdfFontName value, which is deprecated now on the latest version, and that's why I get the error, because it finds nothing on the fontName tag, so i did this with all the empty tags:<font fontName="SansSerif" size="10" isBold="true" pdfFontName="Helvetica-Bold"/>and it worked!! but I cannot doing it manually since I have more than 10 reports, is there anything I can do to correct this? thanks!!!Post Edited by saman0suke at 01/15/2011 18:45 Link to comment Share on other sites More sharing options...
svenn Posted January 17, 2011 Share Posted January 17, 2011 Did you recompile the reports with the newer version of iReports? I ran into this issue when we upgraded from 1.3.3 to 3.7.4. 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