我正在做一个包含条形码的报告,但是当我编译它时,它会给我一个错误
Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@eed1de
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type
value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(26,"*"+((java.lang.String)field_NRIDENTSNS.getValue())+"*",false,false,null,0,0)); //$JR_EXPR_ID=9$
<-------------------------------------->
2. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type
value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(26,"*"+((java.lang.String)field_NRIDENTSNS.getValue())+"*",false,false,null,0,0)); //$JR_EXPR_ID=13$
<-------------------------------------->
3. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type
value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(26,"*"+((java.lang.String)field_NRIDENTSNS.getOldValue())+"*",false,false,null,0,0)); //$JR_EXPR_ID=9$
<-------------------------------------->
4. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type
value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(26,"*"+((java.lang.String)field_NRIDENTSNS.getOldValue())+"*",false,false,null,0,0)); //$JR_EXPR_ID=13$
<-------------------------------------->
5. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type
value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(26,"*"+((java.lang.String)field_NRIDENTSNS.getValue())+"*",false,false,null,0,0)); //$JR_EXPR_ID=9$
<-------------------------------------->
6. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type
value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(26,"*"+((java.lang.String)field_NRIDENTSNS.getValue())+"*",false,false,null,0,0)); //$JR_EXPR_ID=13$
<-------------------------------------->
6 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191) at com.jaspersoft.ireport.desig![enter image description here][1]ner.compiler.IReportCompiler.run(IReportCompiler.java:494) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Compilation running time: 4.807
我做错了什么?我正在使用ireports 3.7.0
这是我的类路径:
答案 0 :(得分:2)
检查barbecue-1.1.jar
文件夹中是否有文件BcImage.class
(包含/web-inf/lib
)。如果没有,请添加它。