pumaking Posted March 13, 2008 Share Posted March 13, 2008 Hello, I successfully implemented a EAN-13 Barcode in Ireports. When I want to create the report Jasperserver, I get an error: 1 - 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(11,((java.math.BigDecimal)field_EAN.getValue()),true,true,null,0,150));//$JR_EXPR_ID=26$ --------------------------------------> 2. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(11,((java.math.BigDecimal)field_EAN.getOldValue()),true,true,null,0,150));//$JR_EXPR_ID=26$ --------------------------------------> 3. it.businesslogic.ireport.barcode.BcImage cannot be resolved to a type value = (java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(11,((java.math.BigDecimal)field_EAN.getValue()),true,true,null,0,150));//$JR_EXPR_ID=26$ --------------------------------------> 3 errors Does anyone have an idea? Link to comment Share on other sites More sharing options...
pumaking Posted March 13, 2008 Author Share Posted March 13, 2008 I solved the problem myself. Had to copy the barbecue.jar in the /web-inf/lib folder. Link to comment Share on other sites More sharing options...
souprgenious Posted October 6, 2008 Share Posted October 6, 2008 I am having the same issue. I copied the barbecue-1.1.jar file to the ./webapps/jasperserver/WEB-INF/lib directory and retried the report. Same results. Did you need to configure apache to use the file in anyway?Scott Link to comment Share on other sites More sharing options...
Gaby38 Posted October 7, 2008 Share Posted October 7, 2008 I presume you have restarted tomcat after having added the jar Link to comment Share on other sites More sharing options...
halfer Posted November 4, 2008 Share Posted November 4, 2008 Thanks for this pointer, although the solution only partly worked for us. We use iReports 3.0.0 and Jasper Server 3, both in the Windows environment. As well as the Barbeque library, we've found that barcodes need "iReport.jaritbusinesslogicireportbarcodeBcImage.class" as well. We have therefore copied the iReports jar from version 3.0.0 of iReports into the "./webapps/jasperserver/WEB-INF/lib" folder. This now works a treat! Does anyone know incidentally whether there is a better way to do this? I am not keen to have added a 7.5Mb file to the lib folder, but then I am also unkeen to start deleting things from the iReports.jar archive, unless I know it is completely safe to do. Does Tomcat load the whole file into memory, or does it just load what it needs anyway? Thanks all! Link to comment Share on other sites More sharing options...
halfer Posted November 4, 2008 Share Posted November 4, 2008 Sorry, that path of the required lib should have been "iReport.jar/it/businesslogic/ireport/barcode/BcImage.class", but the forum ate my backslashes. It also does not reveal a submit button when editing posts (and I get JavaScript errors if I use IE etc...). Link to comment Share on other sites More sharing options...
swood Posted November 4, 2008 Share Posted November 4, 2008 You could create a jar with only the BcImage class in it and put that in WEB-INF/lib ShermanJaspersoft Link to comment Share on other sites More sharing options...
vsoneta Posted June 26, 2009 Share Posted June 26, 2009 I am having the same issue, included - iReport-1.3.3.jar , iReport-utils-2.0.1.jar and barbecue-1.0.6b.jar in WWB-INF/Lib folder of jasper server 3.1 but I still get the error : com.jaspersoft.jasperserver.api.JSExceptionWrapper: Error evaluating expression : Source text : it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(5,$F{UPC1},false,false,$F{UPC1},0,0)Restarted the tomcat 6.0 with java jdk 1.6 Please help... Link to comment Share on other sites More sharing options...
swood Posted June 30, 2009 Share Posted June 30, 2009 The BCImage class is in iReport-utils-2.0.1.jar. You might want to try barbecue-1.1.jar ShermanJaspersoft Link to comment Share on other sites More sharing options...
andalee750 Posted July 30, 2013 Share Posted July 30, 2013 You can generate barcodes in Jasper Reports through Jasper Reports JRRenderable implementation. It has three advantages: easy to create barcodes through Jasper Reports JRRenderable implementation; easy to customize the barcode settings through parameter strings and fast to print large number of barcode images on PDF, html, without any latency. But there is still a disadvantage that every report designer needs a copy of barcode plugin and install it. http://www.keepautomation.com/guide/barcode_ireport.html Link to comment Share on other sites More sharing options...
amywhite989 Posted June 4, 2014 Share Posted June 4, 2014 I did with your advice that "Had to copy the barbecue.jar in the /web-inf/lib folder.", but the barcode font still does work.http://community.jaspersoft.com/sites/all/libraries/ckeditor/plugins/smiley/images/confused_smile.gif Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now