Thursday, November 6, 2008

Essential libraries for Jasper developers

Essential libraries for jasper runtime
  1. commons-collections-2.1.jar
  2. jasperreports-2.0.3.jar
  3. poi-3.0.1-FINAL.jar
Jasper compiler
import java.util.logging.Level;
import java.util.logging.Logger;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
public class Main {
public static void main(String[] args) {
try {
System.out.println("compiling");
JasperCompileManager.compileReportToFile("d:\\Complaint.jrxml");
System.out.println("done");
} catch (JRException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
}

No comments:

Post a Comment