Error Compiling .jrxml file with iReport 2.0.5 « Intelligrape Groovy & Grails Blogs

Error Compiling .jrxml file with iReport 2.0.5

Posted by Hitesh Bhatia

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.

check "option -> setting -> compiler --> Use Report Directory to Compile"

________________________
Regards
Hitesh Bhatia

http://www.IntelliGrape.com

________________________

  • Share/Bookmark
This entry was posted on February 25th, 2010 at 2:55 pm and is filed under Java tools . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

9 Responses to “Error Compiling .jrxml file with iReport 2.0.5”

  1. Amit Jain says:

    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

  2. Sachin says:

    Thanks. It helped me.

  3. subu says:

    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.

  4. subu says:

    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?

  5. 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.

  6. subu says:

    if in windows7. means. is there any step.

  7. As far as I know, open properties-> security
    edit permission that users have on folder.

  8. muhaimi says:

    i have a problem like this, can u help me?

     Compiling to file… D:\Laporan\cobastatis.jasper -> D:\Software\IReport\iReport-3.0.0\cobastatis.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.

  9. 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.
    http://www.jarfinder.com/index.php/java/info/org.eclipse.jdt.internal.compiler.ICompilerRequestor

Leave a Reply