Error saat load chart report di netbeans

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

Error saat load chart report di netbeans

ch3ster_3dyngton
Hi rekan semua, q da masalah ma iReport neh. Aku buat laporan berbentuk grapik/chart. waktu di test di iReport udah berjalan sempurna. Tapi waktu diload di netbeans, muncul pesan kayak gini:

------*** err ***--------
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: org/jfree/util/PublicCloneable
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at net.sf.jasperreports.engine.fill.JRFillObjectFactory.visitChart(JRFillObjectFactory.java:715)
        at net.sf.jasperreports.engine.base.JRBaseChart.visit(JRBaseChart.java:583)
        at net.sf.jasperreports.engine.JRAbstractObjectFactory.getVisitResult(JRAbstractObjectFactory.java:91)
        at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:86)
        at net.sf.jasperreports.engine.fill.JRFillElementContainer.<init>(JRFillElementContainer.java:91)
        at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:87)
        at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:518)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:541)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59)
        at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
        at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)

--------***------------

Aku dah coba tambahkan jFreechart1.jar ke project-ku, tapi masih ttep masih eror gitu. Kira-kira apa kesalahannya ya? ni kode program saat aku load di netbeans :

---------****------------------
private void printReport() {
        String fileName = "report/RPT_CHART1.jrxml";
        Map map = new HashMap();
        map.put("TAHUN1", (String)jComboBox1.getSelectedItem());
       
       
        try {
            JasperDesign jd  = JRXmlLoader.load(fileName);
            JasperReport jr = JasperCompileManager.compileReport(jd);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, conn);
            JasperViewer jv = new JasperViewer(jp, false);

            jv.setTitle("Grapik Laporan");
            setVisible(false);
            jv.setVisible(true);
        } catch (JRException ex) {
            Logger.getLogger(formCatatBarangHilang.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

----------*****--------------