I'm trying to use JRXlsExporter in a scala Play project but compilation fails saying the class is broken and that it doesn't have a constructor. I've tried with 6.1.0 and 6.2.0. [error] error while loading JRXlsExporter, class file '/home/darren/eclipse/rms/lib/jasperreports-6.2.0.jar(net/sf/jasperreports/engine/export/JRXlsExporter.class)' is broken [error] (class java.lang.NullPointerException/null) [error] /home/darren/eclipse/rms/app/Utils/JReport.scala:80: net.sf.jasperreports.engine.export.JRXlsExporter does not have a constructor [error] val rptExporter = new JRXlsExporter() I'm going off this example (updated to use setExporterImport/Export instead of setParameters) and the API also shows it having a constructor. I switched to JRRtfExporter and it works fine, but JRXlsExporter fails. http://www.tutorialspoint.com/jasper_reports/jasper_exporting_reports.htm Scala code: var rpt: Array[byte] = null val rptExporter = new JRXlsExporter() val rptStream = new ByteArrayOutputStream() rptExporter.setExporterInput(new SimpleExporterInput(rptPrint)) rptExporter.setExporterOutput(new SimpleOutputStreamExporterOutput(rptStream)) rptExporter.exportReport() rpt = rptStream.toByteArray()