ktrinad Posted August 31, 2006 Share Posted August 31, 2006 By: G᢯r M󣺡r - moczar Compile error with iReport 0.2.1 2003-07-17 01:39 Hi! I have just started to use iReport 0.2.1 on Win2k, but I cannot compile anything at all. I always get the following error for reports which were made with iReport 0.1.0 (and for new reports too): Compiling to file... C:ireport2topdurN.jasper -> C:ireport2topdurN.java Errors compiling C:ireport2topdurN.jasper! java.io.IOException: CreateProcess: javac -classpath C:ireport2;C:ireport2classes;C:ireport2libcommons-beanutils.jar;C:ireport2libcommons-collections.jar;C:ireport2libcommons-digester.jar;C:ireport2libcommons-logging-api.jar;C:ireport2libcommons-logging.jar;C:ireport2libitext-0.96.jar;C:ireport2libjakarta-poi-1.5.1-final-20020615.jar;C:ireport2libjasperreports.jar;C:ireport2libjcommon-0.8.0.jar;C:ireport2libjfreechart-0.9.8.jar;C:ireport2libmysql-connector-java-3.0.8-stable-bin.jar;C:ireport2libxercesImpl.jar;C:ireport2libxmlParserAPIs.jar C:ireport2topdurN.java error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:63) 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.JRCompiler.compileClass(JRCompiler.java:235) at dori.jasper.engine.design.JRCompiler.compileReport(JRCompiler.java:145) 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:ireport2topdurN.java at dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:127) at dori.jasper.engine.design.JRCompiler.compileClass(JRCompiler.java:235) at dori.jasper.engine.design.JRCompiler.compileReport(JRCompiler.java:145) 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:ireport2;C:ireport2classes;C:ireport2libcommons-beanutils.jar;C:ireport2libcommons-collections.jar;C:ireport2libcommons-digester.jar;C:ireport2libcommons-logging-api.jar;C:ireport2libcommons-logging.jar;C:ireport2libitext-0.96.jar;C:ireport2libjakarta-poi-1.5.1-final-20020615.jar;C:ireport2libjasperreports.jar;C:ireport2libjcommon-0.8.0.jar;C:ireport2libjfreechart-0.9.8.jar;C:ireport2libmysql-connector-java-3.0.8-stable-bin.jar;C:ireport2libxercesImpl.jar;C:ireport2libxmlParserAPIs.jar C:ireport2topdurN.java error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:63) 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 I set JAVA_HOME, ANT_HOME and IREPORT_HOME. Can anybody help me? Thanks a lot! Regards, Gabor TC&C By: Giulio Toffoli - gt78 RE: Compile error with iReport 0.2.1 2003-07-17 13:49 Marcelo, in your case the problem is different: you have not problem with the java home but with your subreport. JasperReports is not able to find the subreport: D:Reportteste.jasper Fo you have compiled D:Reportteste.xml ? Giulio By: Giulio Toffoli - gt78 RE: Compile error with iReport 0.2.1 2003-07-17 05:46 This errior happen if you have not set java home in the classpath form with iReport 0.1.0. You can find more details on how to set java home in iReport 0.1.0 in the iReport 0.1.0 manual on ireport.sf.net. Giulio By: Marcelo Bello - marcelobello RE: Compile error with iReport 0.2.1 2003-07-17 10:03 I get the same problem (see below) I have JAVA_HOME set outside iReport. Also, iReport is behaving weirdly, some menu items don't work at all: -Project/Add report to project... -Project/Project options... -Edit/Edit xml source... I use Win2000 Pro. Please if someone have a solution, explain HOW not only WHAT to do. I don't know how to set JAVA_HOME inside iReport. I use version iReport 0.2.1. The error I get when I try to generate the report... Compiling to file... D:Reportteste.jasper -> D:iReport-0.2.1teste.java Errors compiling D:Reportteste.jasper! java.io.IOException: CreateProcess: javac -classpath D:iReport-0.2.1;D:iReport-0.2.1classes;D:iReport-0.2.1libclasses111.jar;D:iReport-0.2.1libcommons-beanutils.jar;D:iReport-0.2.1libcommons-collections.jar;D:iReport-0.2.1libcommons-digester.jar;D:iReport-0.2.1libcommons-logging-api.jar;D:iReport-0.2.1libcommons-logging.jar;D:iReport-0.2.1libitext-0.96.jar;D:iReport-0.2.1libjakarta-poi-1.5.1-final-20020615.jar;D:iReport-0.2.1libjasperreports.jar;D:iReport-0.2.1libjcommon-0.8.0.jar;D:iReport-0.2.1libjfreechart-0.9.8.jar;D:iReport-0.2.1libmysql-connector-java-3.0.8-stable-bin.jar;D:iReport-0.2.1libnls_charset11.jar;D:iReport-0.2.1libxercesImpl.jar;D:iReport-0.2.1libxmlParserAPIs.jar D:iReport-0.2.1teste.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.JRCompiler.compileClass(JRCompiler.java:235) at dori.jasper.engine.design.JRCompiler.compileReport(JRCompiler.java:145) 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 : D:iReport-0.2.1teste.java at dori.jasper.engine.design.JRJavacCompiler.compileClass(JRJavacCompiler.java:127) at dori.jasper.engine.design.JRCompiler.compileClass(JRCompiler.java:235) at dori.jasper.engine.design.JRCompiler.compileReport(JRCompiler.java:145) 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 D:iReport-0.2.1;D:iReport-0.2.1classes;D:iReport-0.2.1libclasses111.jar;D:iReport-0.2.1libcommons-beanutils.jar;D:iReport-0.2.1libcommons-collections.jar;D:iReport-0.2.1libcommons-digester.jar;D:iReport-0.2.1libcommons-logging-api.jar;D:iReport-0.2.1libcommons-logging.jar;D:iReport-0.2.1libitext-0.96.jar;D:iReport-0.2.1libjakarta-poi-1.5.1-final-20020615.jar;D:iReport-0.2.1libjasperreports.jar;D:iReport-0.2.1libjcommon-0.8.0.jar;D:iReport-0.2.1libjfreechart-0.9.8.jar;D:iReport-0.2.1libmysql-connector-java-3.0.8-stable-bin.jar;D:iReport-0.2.1libnls_charset11.jar;D:iReport-0.2.1libxercesImpl.jar;D:iReport-0.2.1libxmlParserAPIs.jar D:iReport-0.2.1teste.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 Compilation running time : 80 Error filling print... java.io.FileNotFoundException: D:Reportteste.jasper at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:288) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:187) at java.lang.Thread.run(Thread.java:536) NESTED BY : java.io.FileNotFoundException: D:Reportteste.jasper at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:288) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:187) at java.lang.Thread.run(Thread.java:536) NESTED BY : dori.jasper.engine.JRException: D:Reportteste.jasper at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:288) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:187) at java.lang.Thread.run(Thread.java:536) Caused by: java.io.FileNotFoundException: D:Reportteste.jasper ... 4 more Print not filled. Try to use an EmptyDataSource...! By: G᢯r M󣺡r - moczar RE: Compile error with iReport 0.2.1 2003-07-18 00:46 Thanks for the reply! Sorry, but I do not understand your answer, because I am talking about iReport 0.2.0, not about iReport 0.1.0. I have used iReport 0.1.0 and I did not have any problem with it. I have also set the JAVA_HOME (in iReport.bat). And it is still not working! Thanks! Gabor By: Giulio Toffoli - gt78 RE: Compile error with iReport 0.2.1 2003-07-18 01:55 The JAVA_HOME in iReport 0.2.x is not relevant for compilation. iReport 2 don't use external programs to compile reports. Now become to your error. JasperReports don't find the file D:Reportteste.jasper: (Thread.java:536) Caused by: java.io.FileNotFoundException: D:Reportteste.jasper This is very strange, because you have specified an absolute path, so why don't find it? I the file exsists I can give you an answer. I'll investigate, but don't hope too much... :-) Giulio By: G᢯r M󣺡r - moczar RE: Compile error with iReport 0.2.1 2003-07-18 03:44 Sorry, but marcelobello has the "java.io.FileNotFoundException". I only have the IOException with error=2. I went through the classpath parameters, and every file and directory are at the right place. I also have the report files. ??? Thanks! Gabor By: Giulio Toffoli - gt78 RE: Compile error with iReport 0.2.1 2003-07-20 01:41 I don't know. Have you compiled master and subreport with the same jasperreports version? You can run successfully your subreport? Giulio By: G᢯r M󣺡r - moczar RE: Compile error with iReport 0.2.1 2003-07-24 08:19 I have copied tools.jar to iReport2/lib and everything works fine. 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