Jump to content
Changes to the Jaspersoft community edition download ×

Error compiling report in jar-file

2004 IR Help

Recommended Posts

By: jimi - jimiche

Error compiling report in jar-file

2005-07-20 02:35


I'm new in this Forum.

If I start my program from the eclipse-environment

all works fine.

If I export everything to a jar-file the error-message which is shown below appears. I have included all jars in the manifest-file. But it seems this is not the point. Additionaly I added the jasperreports-0.6.8.jar to the CLASSPATH environment-variabel but that does not work either.

Would be great if somebody has any suggestion for me.

Here the mesage:


::MainDialog::CreateReport: Errors were encountered when compiling report expressions class file:

J:CT4001binrep1.java:4: package net.sf.jasperreports.engine does not exist

import net.sf.jasperreports.engine.*;


J:CT4001binrep1.java:5: package net.sf.jasperreports.engine.fill does not exist

import net.sf.jasperreports.engine.fill.*;







By: jimi - jimiche

RE: Error compiling report in jar-file

2005-07-20 07:39

Ok I found it myself.

May be it is useful for somebody

put the line

System.setProperty("jasper.reports.compile.class.path", "path_of\jasperreports-0.6.8.jar");

in front of the line where the report is compiled.


JasperReport report = JasperCompileManager.compileReport(design);

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...