0
Trying to generate product barcodes, using Barcode4j 2.1
of JasperSoft 6.5.1
, but when running on the JSF page of that error:
javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org/apache/batik/bridge/UserAgent
And display the blank PDF.
Since, in the program Jaspersoft normally displays the PDF with the code.
CodigoBarras.jrxml
<componentElement>
<reportElement x="15" y="23" width="100" height="30" uuid="9127b2ca-8116-450e-a692-7c17bdd12b43"/>
<jr:Codabar xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
<jr:codeExpression><![CDATA[$F{codigobarra}]]></jr:codeExpression>
</jr:Codabar>
</componentElement>
To classe.java
that runs the . Jasper is normal, I use in other prints and PDF generation.
Allan Braga, already has these two dependencies in the pom, I thought with them already solved the problem
– Guilherme Costa
Didn’t solve the problem ? Because this problem is related to lack of library...
– Allan Braga
I solved using
barbecue
instead of thebarcode4J
. Obliged– Guilherme Costa