在JasperReports 5.6.1中打印QR码

时间:2014-09-15 17:37:26

标签: java jasper-reports

尝试在 JasperReports中打印QR码时出现以下错误

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. com.google.zxing.client.j2se.MatrixToImageWriter cannot be resolved to a type
                value = com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(new com.google.zxing.qrcode.QRCodeWriter().encode("((java.lang.String)field_RECSEQ.getValue())",com.google.zxing.BarcodeFormat.QR_CODE,300 ,150 )); //$JR_EXPR_ID=10$

1 个答案:

答案 0 :(得分:3)

我通过添加core.jar和javase.jar来构建路径。