jasper report not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

jasper report not working

lamsalsandeep
Hi team
 firstly sorry for my poor english. i have trying to develop a school management system application .i want to print a report which is i already desing in jasper report but the problem is that when i clicked the print button it shows error: Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester

i have include all the necessary libraries

below is code of by print button:
 private void bt_printMouseClicked(java.awt.event.MouseEvent evt) {
conn = JavaConnectDb.Connerdb();
        try{
            JasperDesign jasperDesign= JRXmlLoader.load("report1.jrxml");
            String sql="select * INFORMATIONSHEET where ACADMIC_YEAR='"+cmbo_acdmicyur.getSelectedItem().toString() +"',STUDENT_ID='"+tf_Stid.getText()+"',CLASS='"+combo_Class.getSelectedItem().toString()+"',MONTHE='"+combo_monthe.getSelectedItem().toString()+"'";
            JRDesignQuery newQuery= new JRDesignQuery();
            newQuery.setText(sql);
            jasperDesign.setQuery(newQuery);
            JasperReport jasperReport=JasperCompileManager.compileReport(jasperDesign);
            JasperPrint jasperPrint=JasperFillManager.fillReport(jasperReport, null,conn);
            JasperViewer.viewReport(jasperPrint);
           
        }catch(Exception e){
            JOptionPane.showMessageDialog(null, e);
        }  

please reply as soon as possible

thank you