Search code examples
javalinuxpdffontsjasper-reports

jasper-reports generate empty pdf in linux


  1. i have used jasper-reports 3.*
  2. my application-server is jboss
  3. OS is windows : every things is ok and generated pdf shown correctly

but the problem is:
1. when OS is Linux : generated pdf is empty

caused by :
1.maybe for fonts not exist!!

i have tried these ways :
1.copy all necessary fonts in my application's class path
2.install all necessary fonts on Linux machine
3.copy all necessary fonts in JRE/lib/fonts

but problem still not resolved ...

any help will be appriciated?


Solution

  • if your Linux using OpenJDK , this is the problem , OpenJDK has problem with regular fonts and some graphical charts , to resolve problem install " sun/Oracle jdk " , all issue will be done