This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma 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 Java Interview Guide this week in the Jobs Discussion 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: 42965
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.
I agree. Here's the link:
subject: Problems with Jasper Reports
It's not a secret anymore!