Jump to content
We've recently updated our Privacy Statement, available here ×

java.lang.NoClassDefFoundError: org/apache/commons


mcc_gagan_jasper

Recommended Posts

Whenever i want to fill my report i am getting this error :

 

java.lang.NoClassDefFoundError: org/apache/commons/collections/ReferenceMap

at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.<clinit>(JRAbstractJavaCompiler.java:58)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 

 

All the classes that comes with ireports are in classpath. Please help it is very urgent.

Link to comment
Share on other sites

  • 3 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

The most probably problem is that you have not included the commons-collection jar file. Which version of jasper reports are you using ? If it is 2.0 , then use the commons-collection 2.0.jar file which contains the org/apache/commons/collections/ReferenceMap

I had the same problem , and solved it by adding the above mentioned jar file to my lib folder.

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...