By: Albert Chan - albertchan
how to compile XML report in IReport?
2003-12-04 16:04
Hi,
How can I compile a Jasper report (.xml) in IReport 0.2.2? I clicked the "compile" button but nothing happens. I clicked "Help" but nothing happens too. I started IReport by "ant run" in ms-dos prompt.
Thanks in advance,
al
By: Andy Deighton - andyxr
RE: how to compile XML report in IReport?
2003-12-05 02:24
I know this sounds obvious, but I'd consult the iReport author. iReport is a tool that uses Jasper. If it helps, I've had no problems loading up JR xml into iReport. Anyway, I'd email the iReport author or search for an iReport help forum.
Regards,
Andy
UK
By: Albert Chan - albertchan
RE: how to compile XML report in IReport?
2003-12-05 09:35
Well, instead of compile, I tried execute report in IReport and it gives me this error:
Compiling to file... C:\Jasper\iReport-0.2.2\test.jasper -> C:\Jasper\iReport-0.2.2\test.java Errors compiling C:\Jasper\iReport-0.2.2\test.jasper! java.io.IOException:?CreateProcess:?javac?-classpath?C:\Jasper\iReport-0.2.2;C:\Jasper\iReport-0.2.2\classes;C:\Jasper\iReport-0.2.2\lib\commons-beanutils.jar;C:\Jasper\iReport-0.2.2\lib\commons-collections.jar;C:\Jasper\iReport-0.2.2\lib\commons-digester.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging-api.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging.jar;C:\Jasper\iReport-0.2.2\lib\itext-0.96.jar;C:\Jasper\iReport-0.2.2\lib\iTextAsian.jar;C:\Jasper\iReport-0.2.2\lib\jakarta-poi-1.5.1-final-20020615.jar;C:\Jasper\iReport-0.2.2\lib\jasperreports-0.5.0.jar;C:\Jasper\iReport-0.2.2\lib\jcommon-0.8.0.jar;C:\Jasper\iReport-0.2.2\lib\jfreechart-0.9.8.jar;C:\Jasper\iReport-0.2.2\lib\mysql-connector-java-3.0.8-stable-bin.jar;C:\Jasper\iReport-0.2.2\lib\xercesImpl.jar;C:\Jasper\iReport-0.2.2\lib\xmlParserAPIs.jar?C:\Jasper\iReport-0.2.2\test.java?error=2 ????at?java.lang.Win32Process.create(Native?Method) ????at?java.lang.Win32Process.<init>(Win32Process.java:67) ????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?dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:102) ????at?dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:151) ????at?dori.jasper.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:136) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:135) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:123) ????at?it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:139) ????at?java.lang.Thread.run(Thread.java:536) NESTED?BY?: dori.jasper.engine.JRException:?Error?compiling?report?java?source?file?:?C:\Jasper\iReport-0.2.2\test.java ????at?dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:127) ????at?dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:151) ????at?dori.jasper.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:136) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:135) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:123) ????at?it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:139) ????at?java.lang.Thread.run(Thread.java:536) Caused?by:?java.io.IOException:?CreateProcess:?javac?-classpath?C:\Jasper\iReport-0.2.2;C:\Jasper\iReport-0.2.2\classes;C:\Jasper\iReport-0.2.2\lib\commons-beanutils.jar;C:\Jasper\iReport-0.2.2\lib\commons-collections.jar;C:\Jasper\iReport-0.2.2\lib\commons-digester.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging-api.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging.jar;C:\Jasper\iReport-0.2.2\lib\itext-0.96.jar;C:\Jasper\iReport-0.2.2\lib\iTextAsian.jar;C:\Jasper\iReport-0.2.2\lib\jakarta-poi-1.5.1-final-20020615.jar;C:\Jasper\iReport-0.2.2\lib\jasperreports-0.5.0.jar;C:\Jasper\iReport-0.2.2\lib\jcommon-0.8.0.jar;C:\Jasper\iReport-0.2.2\lib\jfreechart-0.9.8.jar;C:\Jasper\iReport-0.2.2\lib\mysql-connector-java-3.0.8-stable-bin.jar;C:\Jasper\iReport-0.2.2\lib\xercesImpl.jar;C:\Jasper\iReport-0.2.2\lib\xmlParserAPIs.jar?C:\Jasper\iReport-0.2.2\test.java?error=2 ????at?java.lang.Win32Process.create(Native?Method) ????at?java.lang.Win32Process.<init>(Win32Process.java:67) ????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?dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:102) ????...?6?more
my test.xml only contains a static text in Detail band.
Any suggestions?
Thanks in advance,
al
By: Chuck Deal - cdeal
RE: how to compile XML report in IReport?
2003-12-05 09:46
It's a windows XP error message. I have had that before. I wasn't able to get around it and have not seen a post that tells how to fix it.
Perhaps use the newest JDK (1.4.2_02) and see if the problem goes away?
By: Andy Deighton - andyxr
RE: how to compile XML report in IReport?
2003-12-05 10:00
I run iReport under WinXP and have not seen that error before. However, the first thing I found was that my version of Object (the root class) was out of date or something similar, and I had to update it. Apart from that, I can read in JasperReport XML files, modify them and write them with no worries. If it is indeed an XP-related problem, have you tried downloading all the necessary updates to XP?
Andy
UK
By: Teodor Danciu - teodord
RE: how to compile XML report in IReport?
2003-12-06 10:17
Hi,
I think javac.exe is not in your system's search path.
Add JAVA_HOME\bin to the system path and try again.
Or add tools.jar to the classpath if you want
to compile your reports without launching a separate
process.
I hope this helps.
Teodor
By: Albert Chan - albertchan
RE: how to compile XML report in IReport?
2003-12-08 10:22
Thanks Teodord.... I added JAVA_HOME\bin to my system path and it solves my problem....
how to compile XML report in IReport?
2003-12-04 16:04
Hi,
How can I compile a Jasper report (.xml) in IReport 0.2.2? I clicked the "compile" button but nothing happens. I clicked "Help" but nothing happens too. I started IReport by "ant run" in ms-dos prompt.
Thanks in advance,
al
By: Andy Deighton - andyxr
RE: how to compile XML report in IReport?
2003-12-05 02:24
I know this sounds obvious, but I'd consult the iReport author. iReport is a tool that uses Jasper. If it helps, I've had no problems loading up JR xml into iReport. Anyway, I'd email the iReport author or search for an iReport help forum.
Regards,
Andy
UK
By: Albert Chan - albertchan
RE: how to compile XML report in IReport?
2003-12-05 09:35
Well, instead of compile, I tried execute report in IReport and it gives me this error:
Compiling to file... C:\Jasper\iReport-0.2.2\test.jasper -> C:\Jasper\iReport-0.2.2\test.java Errors compiling C:\Jasper\iReport-0.2.2\test.jasper! java.io.IOException:?CreateProcess:?javac?-classpath?C:\Jasper\iReport-0.2.2;C:\Jasper\iReport-0.2.2\classes;C:\Jasper\iReport-0.2.2\lib\commons-beanutils.jar;C:\Jasper\iReport-0.2.2\lib\commons-collections.jar;C:\Jasper\iReport-0.2.2\lib\commons-digester.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging-api.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging.jar;C:\Jasper\iReport-0.2.2\lib\itext-0.96.jar;C:\Jasper\iReport-0.2.2\lib\iTextAsian.jar;C:\Jasper\iReport-0.2.2\lib\jakarta-poi-1.5.1-final-20020615.jar;C:\Jasper\iReport-0.2.2\lib\jasperreports-0.5.0.jar;C:\Jasper\iReport-0.2.2\lib\jcommon-0.8.0.jar;C:\Jasper\iReport-0.2.2\lib\jfreechart-0.9.8.jar;C:\Jasper\iReport-0.2.2\lib\mysql-connector-java-3.0.8-stable-bin.jar;C:\Jasper\iReport-0.2.2\lib\xercesImpl.jar;C:\Jasper\iReport-0.2.2\lib\xmlParserAPIs.jar?C:\Jasper\iReport-0.2.2\test.java?error=2 ????at?java.lang.Win32Process.create(Native?Method) ????at?java.lang.Win32Process.<init>(Win32Process.java:67) ????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?dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:102) ????at?dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:151) ????at?dori.jasper.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:136) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:135) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:123) ????at?it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:139) ????at?java.lang.Thread.run(Thread.java:536) NESTED?BY?: dori.jasper.engine.JRException:?Error?compiling?report?java?source?file?:?C:\Jasper\iReport-0.2.2\test.java ????at?dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:127) ????at?dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:151) ????at?dori.jasper.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:136) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:135) ????at?dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:123) ????at?it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:139) ????at?java.lang.Thread.run(Thread.java:536) Caused?by:?java.io.IOException:?CreateProcess:?javac?-classpath?C:\Jasper\iReport-0.2.2;C:\Jasper\iReport-0.2.2\classes;C:\Jasper\iReport-0.2.2\lib\commons-beanutils.jar;C:\Jasper\iReport-0.2.2\lib\commons-collections.jar;C:\Jasper\iReport-0.2.2\lib\commons-digester.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging-api.jar;C:\Jasper\iReport-0.2.2\lib\commons-logging.jar;C:\Jasper\iReport-0.2.2\lib\itext-0.96.jar;C:\Jasper\iReport-0.2.2\lib\iTextAsian.jar;C:\Jasper\iReport-0.2.2\lib\jakarta-poi-1.5.1-final-20020615.jar;C:\Jasper\iReport-0.2.2\lib\jasperreports-0.5.0.jar;C:\Jasper\iReport-0.2.2\lib\jcommon-0.8.0.jar;C:\Jasper\iReport-0.2.2\lib\jfreechart-0.9.8.jar;C:\Jasper\iReport-0.2.2\lib\mysql-connector-java-3.0.8-stable-bin.jar;C:\Jasper\iReport-0.2.2\lib\xercesImpl.jar;C:\Jasper\iReport-0.2.2\lib\xmlParserAPIs.jar?C:\Jasper\iReport-0.2.2\test.java?error=2 ????at?java.lang.Win32Process.create(Native?Method) ????at?java.lang.Win32Process.<init>(Win32Process.java:67) ????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?dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:102) ????...?6?more
my test.xml only contains a static text in Detail band.
Any suggestions?
Thanks in advance,
al
By: Chuck Deal - cdeal
RE: how to compile XML report in IReport?
2003-12-05 09:46
It's a windows XP error message. I have had that before. I wasn't able to get around it and have not seen a post that tells how to fix it.
Perhaps use the newest JDK (1.4.2_02) and see if the problem goes away?
By: Andy Deighton - andyxr
RE: how to compile XML report in IReport?
2003-12-05 10:00
I run iReport under WinXP and have not seen that error before. However, the first thing I found was that my version of Object (the root class) was out of date or something similar, and I had to update it. Apart from that, I can read in JasperReport XML files, modify them and write them with no worries. If it is indeed an XP-related problem, have you tried downloading all the necessary updates to XP?
Andy
UK
By: Teodor Danciu - teodord
RE: how to compile XML report in IReport?
2003-12-06 10:17
Hi,
I think javac.exe is not in your system's search path.
Add JAVA_HOME\bin to the system path and try again.
Or add tools.jar to the classpath if you want
to compile your reports without launching a separate
process.
I hope this helps.
Teodor
By: Albert Chan - albertchan
RE: how to compile XML report in IReport?
2003-12-08 10:22
Thanks Teodord.... I added JAVA_HOME\bin to my system path and it solves my problem....
0 Answers:
No answers yet