Skip to Content

Export to PDF with OpenJDK 11

I am trying to use SAP Crystal Reports, version for eclipse and upgrade my application to openjdk 11. I am getting the following error. I think this has something to do with the way fonts are not bundled into the jdk any longer. I do not know if I'm correct though, has anyone had any luck with open jdk 11 and exporting to pdf?


Caused by: java.lang.NullPointerException
at com.crystal2012//com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.if(SourceFile:211)
at com.crystal2012//com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.a(SourceFile:70)
at com.crystal2012//com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.if(SourceFile:77)

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Dec 17, 2018 at 09:53 PM

    Hi Joseph,

    There was another post with a very similar issue to yours here:

    https://answers.sap.com/questions/676449/nullpointerexception-in-opentypefontmanager.html?childToView=708783&answerPublished=true#answer-708783

    They fixed it by copying the windows fonts into the font folder of their java JVM. (jvm/jre/lib/fonts)

    Shawn

    Add comment
    10|10000 characters needed characters exceeded