iReport + Barcode

Galera estou com esse problema ao gerar o barcode do ireport + java.
Se gero no ireport fica certo, mas com java não, alguem sabe ajudar?

net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : 
        Source text : it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(13,"0815",false,false,null,0,0)
        at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:197)
        at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:537)
        at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:505)
        at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:806)
        at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:443)
        at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:426)
        at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:274)
        at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:403)
        at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillFixedBand(JRHorizontalFiller.java:1430)
        at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillDetail(JRHorizontalFiller.java:693)
        at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReportStart(JRHorizontalFiller.java:236)
        at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReport(JRHorizontalFiller.java:117)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:763)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:688)
        at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:517)
        at br.com.ciclope.controller.actions.RelatorioBookAction.getRelatorio(RelatorioBookAction.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mentawai.core.InvocationChain.invoke(InvocationChain.java:302)
        at org.mentawai.filter.ValidatorFilter.filter(ValidatorFilter.java:195)
        at org.mentawai.core.InvocationChain.invoke(InvocationChain.java:116)
        at org.mentawai.filter.AuthenticationFilter.filter(AuthenticationFilter.java:95)
        at org.mentawai.core.InvocationChain.invoke(InvocationChain.java:116)
        at org.mentawai.core.Controller.invokeAction(Controller.java:650)
        at org.mentawai.core.Controller.service(Controller.java:515)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: it/businesslogic/ireport/barcode/BcImage
        at RelatorioBookErros_F_1189191869031_648399.evaluate(RelatorioBookErros_F_1189191869031_648399:179)
        at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:186)
        ... 46 more

Cara, vc precisa adicionar o iReport.jar e o barbecue-1.1.jar na lib do seu projeto.

Boa sorte ae.! :slight_smile:

estou com o mesmo problema e só adicionar as bibliotecas citadas não resolveu…
se alguem tiver a resposta… obrigado

Cara, eu só adicionei os jar’s e resolveu. Também tive um problema semelhante, e o que tive que fazer foi excluir o barcode e refaze-lo de novo. Estranho mas é fato consumado.