Jump to content
JasperReports Library 7.0 is now available ×

JasperReports Does Not Compile


Recommended Posts

By: Renardo Tyner - royalree

JasperReports Does Not Compile

2002-10-24 13:15

Hi,

 

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...