Andrea L.
Andrea L.

Reputation: 29

Error in generating report with java ireport: net.sf.jasperreports.engine.JRException: Error compiling report java source files

When i press the button designed to create the report, in the PC on which i developed is ok, on another is ok, on another one it gives me the error:

net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:.....\file_1188085947562_837366.java

I read, on stackoverflow too, that a fix is to include Jasper-jdt-compiler.jar, but in my downloaded zip of jasperproject there is no such jar, where can i find it? And why it is not present? Jasper project downloaded is version 6.1.0

Upvotes: 2

Views: 4003

Answers (2)

Rohan Dhananjaya
Rohan Dhananjaya

Reputation: 11

I'm also faced to this error after build .jar file. I fixed this problem by copy jdt-compiler-3.1.1.jar file to /dist/bin folder. Try this!

Upvotes: 1

Petter Friberg
Petter Friberg

Reputation: 21710

I have done some investigations into this question. The org.eclipse compiler was once called jtd-compiler, but in latest jasper report relase it is called

ecj-4.3.1.jar

So it is still included in jasper project/lib, but with another name

Have fun

Upvotes: 3

Related Questions