Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapp

  • >Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper at
    net.sf.jasperreports.view.save.JRPdfSaveContributor.save(JRPdfSaveContributor.java:116)……

出现的原因是itext.jar版本不对,需> itext2.1.7

  • > Exception in thread “AWT-EventQueue-0” net.sf.jasperreports.engine.JRRuntimeException: Could not load the
    following font: pdfFontName: STSong-Light pdfEncoding: UniGB-UCS2-H
    isPdfEmbedded : true

要引入一个jar包—iTextAsian.jar

你可能感兴趣的:(itext,FontMapper,itext2-1-7)