java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JasperCompileManager
Publicado por Bryan Cordero (2 intervenciones) el 11/09/2022 19:31:09
if (rbtn_Rcompleto.isSelected() == true) {
Map p = new HashMap();
JasperReport report;
JasperPrint print;
try {
report = JasperCompileManager.compileReport(new File("").getAbsolutePath()
+ "/src/Reportes/rptServicio1.jrxml");
print = JasperFillManager.fillReport(report, p, connection);
JasperViewer view = new JasperViewer(print, false);
view.setTitle("Listado de Confirmaciones");
view.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
JOptionPane.showMessageDialog(rootPane, "Reporte Generado con éxito");
} else if (rbtn_Actas.isSelected() == true) {
if (!txtbuscar.getText().equals("")) {
Map p = new HashMap();
p.put("Nombre", txtbuscar.getText());
JasperReport report;
JasperPrint print;
try {
report = JasperCompileManager.compileReport(new File("").getAbsolutePath()
+ "/src/Reportes/rpConfirmacionesApta.jrxml");
print = JasperFillManager.fillReport(report, p, connection);
JasperViewer view = new JasperViewer(print, false);
view.setTitle("Acta de Confirmación");
view.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
JOptionPane.showMessageDialog(rootPane, "Reporte Generado con éxito");
} else {
JOptionPane.showMessageDialog(rootPane, "No has consultado un registro para generar el reporte", "Advertencia", JOptionPane.WARNING_MESSAGE);
}
}
Map p = new HashMap();
JasperReport report;
JasperPrint print;
try {
report = JasperCompileManager.compileReport(new File("").getAbsolutePath()
+ "/src/Reportes/rptServicio1.jrxml");
print = JasperFillManager.fillReport(report, p, connection);
JasperViewer view = new JasperViewer(print, false);
view.setTitle("Listado de Confirmaciones");
view.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
JOptionPane.showMessageDialog(rootPane, "Reporte Generado con éxito");
} else if (rbtn_Actas.isSelected() == true) {
if (!txtbuscar.getText().equals("")) {
Map p = new HashMap();
p.put("Nombre", txtbuscar.getText());
JasperReport report;
JasperPrint print;
try {
report = JasperCompileManager.compileReport(new File("").getAbsolutePath()
+ "/src/Reportes/rpConfirmacionesApta.jrxml");
print = JasperFillManager.fillReport(report, p, connection);
JasperViewer view = new JasperViewer(print, false);
view.setTitle("Acta de Confirmación");
view.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
JOptionPane.showMessageDialog(rootPane, "Reporte Generado con éxito");
} else {
JOptionPane.showMessageDialog(rootPane, "No has consultado un registro para generar el reporte", "Advertencia", JOptionPane.WARNING_MESSAGE);
}
}
Valora esta pregunta


0