尝试在 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$
答案 0 :(得分:3)
我通过添加core.jar和javase.jar来构建路径。