Hi, I am trying to add a scriptlet to my report . I added tools.jar to my library . The report is compiled , but on executing it (using an active connection) , I am encountering an error . The name of my report is transactionReportMT , that of the scriptlet is transactionReportMTScriptlet and the method involved is testMethod() This the error I get - java.lang.NoSuchMethodError : transactionReportMTScriptlet.testMethod(I)Ljava/lang/String; Code:// Code for the method . This method is decalred just after the constructor of the //scriptlet classpublic java.lang.String testMethod(int i) throws JRScriptletException{ Integer var = (Integer) this.getFieldValue("format"); if (var.intValue()==1) return "Type 1"; else return "Type 2";}