Error Compiling .jrxml file with iReport 2.0.5
Recently I encountered an error , while working on iReports ,
iReport it was not able to compile .jrxml file to generate .jasper file , whilst it used to show compile time.
Error :
Compiling to file... ./<filename>.jasper -> /usr/share/iReport/bin/<filename>.java
Errors compiling ./<filename>.jasper.
net.sf.jasperreports.engine.JRException: Error saving expressions class file : /usr/share/iReport/bin/<filename>_1267071292035_83340.java
Compilation running time: 80
Basically I found two way out this situation
1) Changing permission of usr/share/iReport/bin/ directory .
This can be done with CHMOD command
sudo chmod 777 usr/share/iReport/bin
or
2) change the directory where reports are compiled.
________________________
Regards
Hitesh Bhatia
http://www.tothenew.com
________________________
actually, just uncomment the saving of the java files out
Second one helped me. Thanks a lot.
Seems like problem with the jar file that you might be using,
try placing one of the jar files from following page your lib directory.
i have a problem like this, can u help me?
Compiling to file… D:Laporancobastatis.jasper -> D:SoftwareIReportiReport-3.0.0cobastatis.java
Error compiling the report Java source.
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ICompilerRequestor at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:576) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.ICompilerRequestor at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) … 2 more
Compilation running time: 64.
As far as I know, open properties-> security
edit permission that users have on folder.
if in windows7. means. is there any step.
This command
sudo chmod 777 usr/share/iReport/bin
is for systems running on linux.
This will give read write and execute permission to all users for
specified folders in this case its (usr/share/iReport/bin).You will need to run this command in terminal.
1) Changing permission of usr/share/iReport/bin/ directory .
This can be done with CHMOD command
sudo chmod 777 usr/share/iReport/bin
how do this.
i cant understud this.? how can i do?
Hitesh Bhatia,
hi am fairly new to ireports3.0.0 (jaspersoft)
i face this problem. while am cross the street.
and found out your blog. you step2. helped me. thanks lot.
a lot again.
Thanks. It helped me.
Thanks for sharing. If you would uncheck “Use report direcorty to compile”, then those temp files(.java) won’t get copied to your working directory but to bin directory of IReport.
Regards