This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Problems with Jasper Reports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problems with Jasper Reports" Watch "Problems with Jasper Reports" New topic
Author

Problems with Jasper Reports

Sai Rama
Greenhorn

Joined: Jul 21, 2006
Posts: 2
Hi,

I am getting the same error when I try to run my java program that is accessing jasper report created using IReport. I have put the following .jar files to my classpath.
1.jasperreports-1.2.0.jar
2. classes12.jar (for Oracle JDBC connection)
3. commons-beanutils-1.5.jar
4. commons-collections-2.1.jar
5. commons-digester-1.7.jar
6. commons-logging-1.0.2.jar

But still I am getting this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/ja
vaflow/bytecode/Continuable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:402)
at ReportDriver.runReport(ReportDriver.java:69)
at ReportDriver.main(ReportDriver.java:88)

Can you guys please let me know what other .jar files I need to copy/set to my classpath???

Thanks,
Rama
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
As the error message (kind of) states, it's the Jakarta Commons Javaflow package that's missing. No binary distribution seems to be available for that, according to that page, so you may need to pull the sources out of SVN and compile and jar it yourself. It may also be included in the full JasperReports download.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with Jasper Reports
 
Similar Threads
Ant build - With weblogic 10
java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
Cannot find org.apache.commons.javaflow
Probelm in recognising com.bim.websphere.naming.WsnInitialContextFactory
UnsupportedClassVersionError