i am using jasperreports-6.3.1.jar together with jasperreports-fonts-6.3.1
Using in my Report the Font "DejaVu Serif".
On Windows 10 with JDK 1.8.0_111 everything runs fine.
But on my Linux Server (Synology NAS RS815+ DSM 6.0.2-8451 Update 6) with no head (is headless so no X11 connections and no fonts installed or something like that. I do not know it better.)
i got following error since there was some OS update and updates to JAVA JRE (1.8.0_101):
It is running on all Java Versions again!
It seems to be a Synology specific issue of its tool "Java Manager" i deinstalled Java and reinstalled with no effect. But as i used the update function and downgraded to jdk-7u79-linux-i586.tar.gz it works again with all versions! No matter if jdk-7u79-linux-i586.tar.gz or jdk-7u79-linux-x64.tar.gz is installed.
The font jar file is in the classpath as Library.
thank you for your hint. I tried it with my own extension and had a little progress in troubleshooting! But i am still struggling.
Now i did following:
1. I followed the instructions of http://community.jaspersoft.com/wiki/custom-font-font-extension and used that font.
2. Replaced all occourences of fontName="*" in my "report.jrxml" with fontName="MyFontExtension" and compiled a new report.jasper file
3. Added the new jasper-file to my eclipse Project and hit run.
And got an error wich i was expecting. So far so good. He looks for my font extension!
jasperreports_extension.properties should have been generated. If you edit this file manually, you have to set net.sf.jasperreports.extension.simple.font.families to a unique key or you'll get duplicate error.
Yes they are generated. I did not modify them. Could it be that the project export function is messing something up?
in "MyFonExtension" it says:
JasperReports 6.2.0 had a bug with font extensions but 6.3.1 should be alright. I'm using it on Ubuntu with Java8 and able to use font extensions.
Another thing I did with 6.2.0 (the one with a bug) was to manually add the fonts to jasperreports-font.jar instead of using font-extensions.
I installed Ubuntu on VirtualBox and installed tomcat7 with "sudo apt-get tomcat7".
I deployed my application and everything works fine.
I think it is something wrong with the other linux installation or because it is headless.
And is there a fonconfig.Linux.bfc or something like that missing?