speedy11309 Posted February 27, 2008 Share Posted February 27, 2008 hello i'm having a bit of an issue creating a report. whenever I try to run the program to create the report, I get this error Code:[ERROR]: Could not create the detailed report for a test suite's execution because an exception occured.java.io.IOException: CreateProcess: javac -classpath ./lib/jasperreports/jasperreports-0.6.4.jar C:CVSwilWILQAWTFreport.java error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:66) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at java.lang.Runtime.exec(Runtime.java:491) at java.lang.Runtime.exec(Runtime.java:457) at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:103) at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:152) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:149) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:255) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:241) at com.wbst.wil.qa.wtf.utils.WtfReports.generateTestSuiteDetailsReport(WtfReports.java:62) at com.wbst.wil.qa.wtf.utils.WtfConsole.generateDetailedReport(WtfConsole.java:760) at com.wbst.wil.qa.wtf.utils.WtfConsole.main(WtfConsole.java:800)NESTED BY :net.sf.jasperreports.engine.JRException: Error compiling report java source file : C:CVSwilWILQAWTFreport.java at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:128) at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:152) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:149) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:255) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:241) at com.wbst.wil.qa.wtf.utils.WtfReports.generateTestSuiteDetailsReport(WtfReports.java:62) at com.wbst.wil.qa.wtf.utils.WtfConsole.generateDetailedReport(WtfConsole.java:760) at com.wbst.wil.qa.wtf.utils.WtfConsole.main(WtfConsole.java:800)Caused by: java.io.IOException: CreateProcess: javac -classpath ./lib/jasperreports/jasperreports-0.6.4.jar C:CVSwilWILQAWTFreport.java error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:66) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at java.lang.Runtime.exec(Runtime.java:491) at java.lang.Runtime.exec(Runtime.java:457) at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:103) ... 7 more the code that calls this isCode:[code] reportTemplate = WtfReports.class.getResourceAsStream("TestSuiteDetails.jrxml"«»); // Compile the JasperReport object using report template. report = JasperCompileManager.compileReport(reportTemplate); I know TestSuiteDetails.jrxml is a valid file and it is actually there. I know the actual code to generate the file works. I'm assuming it has something to do with the libraries that I'm probably not importing. Currently in netbeans I have imported the jasperreports-0.6.4.jar file and the itext-1.01.jar file. Is there anything else I need to import? Those are the only two files that were in my jasperreports file. I know there are A LOT newer versions of jasper reports, but I have to use this version(can't upgrade even though I'd like to). Any help would be greatly appreciated. Thanks. Link to comment Share on other sites More sharing options...
lucianc Posted February 28, 2008 Share Posted February 28, 2008 See this FAQ on report compilation. HTH,Lucian 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