So, I'm testing out how JasperReports works. I downloaded iReport so that I can make quick reports, too. I am using CSV files as a data source for my report. The problem is this. Whenever I run the program, it gives me this Exception in thread "main" net.sf.jasperreports.engine.JRException: Error loading object from file : reps.jasper error. How do I fix this?
That's not a problem. It may help someone else see a flaw in it. As I see it, there are two possible causes of the error:
1) the file cannot be read.
2) the file does not contain what it should.
I haven't worked with JasperReports so I only focus on the first possible cause.
OK, so there is a file reps.jasper. But is it located in the right location? What do you get when you add this at line 28:
Perhaps that's not what you expect it to be.
Did the printout I suggested print what you expected? If so, what do the following print:
If both print true then there probably is a mistake in the file itself, although I couldn't tell you where or what.