JasperCompileManager.compileReportToFile(Path of your directory containing .jrxmlfile ".jrxml"); After this line you'll get the .jasper file and with below code you'll get the .jasper file JasperFillManager.fillReportToFile(Path of your directory containing .jrxmlfile+".jasper",new HashMap(),con);