2001 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Renardo Tyner - royalree JasperReports Does Not Compile 2002-10-24 13:15Hi, I've added the code below to a startup class that gets run when the server starts up. I'm trying to run the code in both orion1.5.2 and Tomcat4.06. The JasperReports code does not work with either server. Please Help! --code fragement-- System.setProperty("jasper.reports.compile.class.path", "C:\\JasperReports\lib\jasperreports.jar"); System.setProperty("jasper.reports.compile.temp", "C:\temp\templates"); System.setProperty("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser"); try{ JasperCompileManager.compileReportToFile("C:\temp\templates\HyperlinkReport.xml"); System.out.println("Ran Fine!"); }catch (JRException jre){ System.out.println("Encountered Error Compiling JasperReports --> " + jre.getMessage() ); }catch (Exception e){ System.out.println("Encountered Error Compiling JasperReports --> " + e.getMessage() ); } 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