mcc_gagan_jasper Posted March 31, 2008 Share Posted March 31, 2008 Whenever i want to fill my report in my java class, i am getting this error : java.lang.NoClassDefFoundError: org/apache/commons/collections/ReferenceMapat 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 More sharing options...
dnvsrikanth Posted March 31, 2008 Share Posted March 31, 2008 hi mcc_gagan_jasper, I think some commons jar files are not included in classpath. I cant say this is the exact reason, but this may be one of the reasons DNV Srikanth Link to comment Share on other sites More sharing options...
mcc_gagan_jasper Posted April 1, 2008 Author Share Posted April 1, 2008 Thanks for your reply DNV Srikanth But this is not the reason as commons library is in classpath. Even i have tried different versions of commons jar, but to no avail. What can be the other reasons ??? Link to comment Share on other sites More sharing options...
dnvsrikanth Posted April 1, 2008 Share Posted April 1, 2008 hi mcc_gagan_jasper The problem is commons-collections jar file only. Use latest jar file and delete old jar file from classpath. I've faced the same problem a couple of times, later I resolved this problem by replacing the old jar file with new jar file. DNV Srikanth Link to comment Share on other sites More sharing options...
mcc_gagan_jasper Posted April 1, 2008 Author Share Posted April 1, 2008 Sir I have added 3.2 version of this file to classpath, but still same error Link to comment Share on other sites More sharing options...
mcc_gagan_jasper Posted April 1, 2008 Author Share Posted April 1, 2008 Can u please provide me with right jar file. Link to comment Share on other sites More sharing options...
dnvsrikanth Posted April 1, 2008 Share Posted April 1, 2008 The version you are using is latest one only. But I think in your application you are referring to older version of common-collections.jar.....check it...... DNV Srikanth Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now