Hi, When I tried to compile the lable using iReport Designer, have this error come out:
Compiling to file... D:\irwan\eclipse workspace\ASHLabelPrint - v5.3.7\templates\MasterCarton Youfin Label.jasper Errors compiling D:\irwan\eclipse workspace\ASHLabelPrint - v5.3.7\templates\MasterCarton Youfin Label.jasper! Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@5685672a
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_boxlabel_1612850715095_205098: 190: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 190, column 21.
calculator_boxlabel_1612850715095_205098: 267: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 267, column 21.
calculator_boxlabel_1612850715095_205098: 290: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 290, column 21.
calculator_boxlabel_1612850715095_205098: 377: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 377, column 21.
calculator_boxlabel_1612850715095_205098: 454: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 454, column 21.
calculator_boxlabel_1612850715095_205098: 477: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 477, column 21.
calculator_boxlabel_1612850715095_205098: 564: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 564, column 21.
calculator_boxlabel_1612850715095_205098: 641: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 641, column 21.
calculator_boxlabel_1612850715095_205098: 664: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 664, column 21.
9 errors
at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:113)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:201)
at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:354)
at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:270)
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:563)
at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:528)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_boxlabel_1612850715095_205098: 190: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 190, column 21.
calculator_boxlabel_1612850715095_205098: 267: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 267, column 21.
calculator_boxlabel_1612850715095_205098: 290: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 290, column 21.
calculator_boxlabel_1612850715095_205098: 377: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 377, column 21.
calculator_boxlabel_1612850715095_205098: 454: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 454, column 21.
calculator_boxlabel_1612850715095_205098: 477: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 477, column 21.
calculator_boxlabel_1612850715095_205098: 564: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 564, column 21.
calculator_boxlabel_1612850715095_205098: 641: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 641, column 21.
calculator_boxlabel_1612850715095_205098: 664: unable to resolve class com.barcodelib.barcode.BarcodeJasperRenderer
@ line 664, column 21.
9 errors
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:915)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:564)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:513)
at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:109)
... 7 more
Compilation running time: 200!
-------------------------------------------------------------------------------------------------------------------------------------
This error come out due to my barcode (No barcode No Error) . Below is Barcode image expression :
new com.barcodelib.barcode.BarcodeJasperRenderer(com.barcodelib.barcode.BarcodeJasperFactory.createPDF417(
$F{Internal Part Number}
+ "/"
+ $F{1st Lot Number}
+ "-"
+ $F{1st MO Quantity}
+"\r"
,1,10,7,1,3,0,0,0,0))
----------------------------------------------------------------------------------------------------------------------------------------
Please help me advise on this,.
Thanks.