Problems with JasperReport

I have created a report using iReport but i can't compile it into a JasperReport

This is my code:

jasRep = JasperCompileManager.compileReport(

"Template/TCReport.jrxml");

jasPrnt = JasperFillManager.fillReport(

jasRep, parameters, new JREmptyDataSource());

JasperViewer.viewReport(jasPrnt);

This is the errors:

C:\Borland\JBuilder2005\jdk1.4\bin\javaw -classpath "C:\Documents and Settings\Administrator\Desktop\Russell\Java Programs\AutmoatedApplicationInterface\classes;C:\Borland\JBuilder2005\lib\jexcelapi\jxl.jar;C:\Documents and Settings\Administrator\Desktop\Russell\Java Programs\AutmoatedApplicationInterface\lib\jasperreports-1.2.5.jar;C:\Borland\JBuilder2005\jdk1.4\jre\javaws\javaws.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\charsets.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\dnsns.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\ldapsec.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\localedata.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\sunjce_provider.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\im\indicim.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\im\thaiim.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\jce.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\jsse.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\plugin.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\rt.jar;C:\Borland\JBuilder2005\jdk1.4\jre\lib\sunrsasign.jar;C:\Borland\JBuilder2005\jdk1.4\lib\dt.jar;C:\Borland\JBuilder2005\jdk1.4\lib\htmlconverter.jar;C:\Borland\JBuilder2005\jdk1.4\lib\tools.jar;C:\Program Files\Microsoft SQL Server 2005 JDBC Driver\sqljdbc_1.0\enu\sqljdbc.jar" AutmoatedApplicationInterface.AutmoatedApplicationInterface

java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester

at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)

at AutmoatedApplicationInterface.AutmoatedApplicationInterface.runReport(AutmoatedApplicationInterface.java:85)

at AutmoatedApplicationInterface.AutmoatedApplicationInterface$1.run(AutmoatedApplicationInterface.java:107)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

[2641 byte] By [leoh0002a] at [2007-10-3 3:41:00]
# 1
Add jar files jasperreports-0.6.2.jar, commons-beanutils.jar, commons-collections.jar, commons-digester.jar, commons-logging.jarJakarta-POI poi-bin-2.5.1-final-20040804.zipPDF Itext-1.1.jar to Classpath.
dvohra09a at 2007-7-14 21:36:47 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Thanks for your advice. I have manage to get rid of the previous error however, i am getting this error when try to run the source code.

Below is the error msg obtained:

java.lang.NoClassDefFoundError: org/apache/commons/javaflow/bytecode/Continuable

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)

at AutmoatedApplicationInterface.AutmoatedApplicationInterface.runReport(AutmoatedApplicationInterface.java:88)

at AutmoatedApplicationInterface.AutmoatedApplicationInterface$1.run(AutmoatedApplicationInterface.java:115)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Pse advise me on what actually happens. I simply have no idea what it means? Thanks alot.

leoh0002a at 2007-7-14 21:36:47 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
java.lang.NoClassDefFoundError: org/apache/commons/javaflow/bytecode/ContinuableOne more JAR file to add.Add the commons-javaflow-20060411.jar in the lib directory to classpath.
dvohra09a at 2007-7-14 21:36:47 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
Thanks for your help. It works perfectly.
leoh0002a at 2007-7-14 21:36:47 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...