Peanut Posted November 2, 2006 Share Posted November 2, 2006 Hello, when you execute JasperCompileManager.compileReportToFile(jasperDesign, sNomFicJasperAbs); Jasper generates a temporary file xyz.java in its own directory.Is it possible to specify the place for this xyz.java file to be generated ?(I don't have the permission to write in the bin directory)Post edited by: Peanut, at: 2006/11/02 09:30 Link to comment Share on other sites More sharing options...
lucianc Posted November 2, 2006 Share Posted November 2, 2006 You can eitheruse the JDT report compiler which doesn't need to write a .java file (simply include the JDT jar on your application classpath to use it)set the compiler temp dir property via code (JRProperties.COMPILER_TEMP_DIR) or properties file (net.sf.jasperreports.compiler.temp.dir)[/ul] HTH,Lucian Link to comment Share on other sites More sharing options...
Peanut Posted November 2, 2006 Author Share Posted November 2, 2006 Thanks ! net.sf.jasperreports.engine.util.JRProperties.setProperty(net.sf.jasperreports.engine.util.JRProperties.COMPILER_TEMP_DIR, sNomRepTrav) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now