gpt4 book ai didi

java - I报告和条形码

转载 作者:行者123 更新时间:2023-12-02 08:20:13 25 4
gpt4 key购买 nike

我正在做一个包含条形码的报告,但是当我编译它时,它给了我一个错误

    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

这是我的类路径:

http://img857.imageshack.us/img857/6145/classpath.png

最佳答案

检查/web-inf/lib中是否有文件barbecue-1.1.jar(其中包含BcImage.class)文件夹。如果没有,请添加它。

关于java - I报告和条形码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5622440/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com