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

Problems with Jasper Reports

Sai Rama

Joined: Jul 21, 2006
Posts: 2

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.
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
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at Source)
at Source)
at$100(Unknown Source)
at$ Source)
at Method)
at 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
at ReportDriver.runReport(
at ReportDriver.main(

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

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41073
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:
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