This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm working on a project that needs Jasper reporting, I have used the code fragment mentioned below to view the report in NetBeans 6.1 (the report is originally generated and compiled using iReport 3.6.0),my requirement is to print this report using a simple Swing application.
But when I run this it gives an exception that I couldn't figure out.
I added the appropriate groovy-all-1.5.5.jar to my project classpath, but I still cannot generate a pdf report.
This time, I get
Caused by: java.lang.NoClassDefFoundError: org/codehaus/groovy/control/Compilati
at java.lang.Class.getDeclaredConstructors0(Native Method)
you are using groovy language for your reports that's why you are getting this exception just change the language from the property option of the report to java this will fix the exception....
Joined: Apr 26, 2010
I am fine with using groovy as language for the reports. The problem was I was not importing the .jar properly in my app. I had to use the libray path in my orion-application.xml file like this: <library path="./shared-libs/poi-3.5-FINAL-20090928.jar" />
Joined: Mar 02, 2010
hey I am using groovy-all-minimal-1.1-rc-3-javadoc and groovy-all-1.5.5-javadoc lib files and I am not getting any problem. hope this will help you also..