Error Compiling .jrxml file with iReport 2.0.5

25 / Feb / 2010 by Hitesh Bhatia 11 comments

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
________________________

FOUND THIS USEFUL? SHARE IT

Tag -

ireport Jasper

comments (11)

  1. Hitesh Bhatia

    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.

    Reply
  2. muhaimi

    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.

    Reply
  3. Hitesh Bhatia

    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.

    Reply
  4. subu

    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?

    Reply
  5. subu

    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.

    Reply
  6. Amit Jain

    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

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *