Hola buen dia y gracias adelantadas por su ayuda
Quiero crear un reporte en Java atraves de JasperReport e iReport
Pero tengo el problema que me marca este error
en el momento de compilar el jrxml a jasper
El recurso si se encuentra en el directorio que le especifique por lo que no se porque me marca un error de Class Loader, si alguien me pudiera guiar o instruir acerca de alguna experiencia, libreria faltante, solucion que le dio, etc. Estaria muy agradecido...
Dejo fragmento de codigo donde quiero intentar todo.. y el error que me aparece
Código:
System.out.println(new File("C:/ReporteEmpleado.jrxml").exists());
JasperDesign jasperDesign = JRXmlLoader.load ("C:/ReporteEmpleado.jrxml");
JasperReport jasperReport=JasperCompileManager.compileReport(jasperDesign);
//Map<String, Object> parametros=new HashMap<String, Object>();
JasperPrint jasperPrint=JasperFillManager.fillReport(jasperReport, null,Conexion.getConexion());
JRXlsExporter exporter=new JRXlsExporter();
exporter.setParameter(JRExporterParameter.OUTPUT_FILE, "C:/Reporte.xls");
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.exportReport();
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at net.sf.jasperreports.engine.util.JRClassLoader.loa dClassForRealName(JRClassLoader.java:157)
at net.sf.jasperreports.engine.util.JRClassLoader.loa dClassForName(JRClassLoader.java:115)
at net.sf.jasperreports.engine.JasperCompileManager.g etCompiler(JasperCompileManager.java:508)
at net.sf.jasperreports.engine.JasperCompileManager.c ompileReport(JasperCompileManager.java:212)
at com.coppel.Vista.FrameCatalogoEmpleados.actionPerf ormed(FrameCatalogoEmpleados.java:289)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.control.CompilationFailedExcep tion
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)