2005 IR Help Posted September 3, 2006 Share Posted September 3, 2006 By: Francisco - kjava2 I Need Help in this Exception 2005-07-13 04:01 Why I try to compile my report in iReport I am getting this exception: Compiling to file... C:ProjetosSikGetXMLREP_RELACAO_COLETAS.jasper -> C:ProjetosSikGetXMLREP_RELACAO_COLETAS.java Error compiling the report java source! java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at it.businesslogic.ireport.IReportCompiler.class$(IReportCompiler.java:1178) at it.businesslogic.ireport.IReportCompiler.getClassLoader(IReportCompiler.java:1178) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:412) at java.lang.Thread.run(Unknown Source) What is this? Is it supposed to have the jdt-compiler.jar file in CLASSPATH? But in iReport I have the compiler option set to "JasperReport defaults". Even though I put it there but sitll no success. So, I beg you guys, does anyone know what should I do to compile my reports again? (It is very very important) JDK 1.5 iReport 0.5.0 JasperReport 0.6.8 Thanks a lot By: Andrey - andfedotov RE: I Need Help in this Exception 2005-07-25 03:00 Well, seems that JasperReport defaults uses jdt-compiler.jar. In IReport Options set 'Java Compiler' as Compiler for your reports. In this case don't forget to put tools.jar from your jdk to IReport's folder. Good luck! Andrey By: Susan - susancai RE: I Need Help in this Exception 2006-01-19 21:14 I encountered same problem also in iReport0.5.3 and Java 1.5, JsperReport1.1.1. Felt like "classpath" problem. the jdt-compiler.jar was in iReport/lib, and I copied tool.jar to iReport/lib also, but the problem still same. same error msg as following: Compiling to file... C:javaiReport-0.5.3worktest_1.jasper -> C:javaiReport-0.5.3worktest_1.java Error compiling the report java source! java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment at java.lang.Class.forName0(Native Method) at java.lang.Class.forName (Unknown Source) at it.businesslogic.ireport.IReportCompiler.class$(IReportCompiler.java:1326) at it.businesslogic.ireport.IReportCompiler.getClassLoader (IReportCompiler.java:1326) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Unknown Source) Compilation running time : 4 By: Susan - susancai RE: I Need Help in this Exception 2006-01-24 00:09 Dear Giulio Toffoli, I had tried to put tools.jar file into lib, the exception was still thrown when I compiled the report in iReport. (iReport0.5.3 and Java 1.5, JsperReport1.1.1. ) If we take a close look at the trail of startup.bat (by set echo on) , we can find that startup.bat add the jar files used into classpath and then call it.businesslogic.ireport.gui.MainFrame to run iReport. The path I traced in startup.bat as following, which shown .libjr-bsh-compiler.jar was add in classpath, What's the cause of the exception being thown? (tools.jar is in c:javajdklib that was included in classpath) Could you please delight me? I really could not be able to figure it out. Your help are great appreciated. Thanks & Best Regards, susan ---------------------------------------- java -cp "c:javajdkbin;c:javajdklib*.jar; c:javaiReportbin;c:javaiReportlib*.jar; .classes;.libbarbecue-1.1.jar;.libbsh-1.3.0.jar; .libcommons-beanutils-1.5.jar; .libcommons-collections-2.1.jar; .libcommons-digester-1.7.jar; .libcommons-logging-1.0.2.jar; .libcommons-logging-api-1.0.2.jar;.libgroovy-all-1.0-beta-10.jar; .libhsqldb-1.61.jar;.libiReport.jar; .libitext-1.3.1.jar;.libjasperreports-1.1.1.jar;.libjcmdline-1.0.2.jar;.libjcommon-1.0.0-rc1.jar;.libjdt-compiler.jar; .libjfreechart-1.0.0-rc1.jar; .libjr-bsh-compiler.jar; .libjr-groovy-compiler.jar;.liblog4j-1.2.8.jar;.liblooks-1.2.2.jar;.libmysql-connector-java-3.1.11-bin.jar; .libpngencoder.jar; .libpoi-2.0-final-20040126.jar;.libtinylaf.jar;.libxalan.jar;.libxercesImpl.jar;.libxml-apis.jar" -Xms24m -Xmx512m it.businesslogic.ireport.gui.MainFrame By: Susan - susancai RE: I Need Help in this Exception 2006-02-02 16:00 JDK and JRE were requested to be put at same folder (such as "c:program filesjava" by iReport. If put JDK and JRE under different directory, for example, jdk in c:javajdk while jre in c:program filesjava", the above exception will be thrown. 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