Cannot compile or run jasper report!!!!!!!
I have a problem and need your help.
I m writting a java class for jasper reports and i m getting error during compiling jrxml file by following code:-
The error is:-
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.collections.ArrayStack: method <init>(I)V not found
I have seen many posts on this and got answer as i should have proper versions of jars :-
I tried many versions of above jars (compatible with each other , latest versions also) but didn't got answer for above error.
Also , one more thing is that ,
when i use FillManager for any .jasper file , using the code ,
JasperFillManager.fillReport("//home//ubuntu//Desktop//jasperexample.jasper",new HashMap<Object, Object>());
I got error , as ,
net.sf.jasperreports.engine.JRException: Error loading object from file : /home/ubuntu/Desktop/jasperexample.jasper
I have tried my code on both jdk 1.5 and 1.6 , but still not working.
Can you solve my problem , plz?