In the development of a Java system I used iReport Designer 5.6.0 to generate some reports.
However, I have had a problem with reports that contain subreports. I have a parent report that also contains a subreport that would be the detail, in the preview on my computer it shows up wonderfully and also when compiling it, it also works well when creating the * .jar and using it on my computer, but when copying this to other machines does not find the subreport route, due to this it does not find the subreport.
The question is how can I send the route, the location of the subreport to the parent report.
The two reports are in the same directory as the application.
The error generated in other computers is as follows:
net.sf.jasperreports.engine.JRException: Resource not found at: C: \ Users \ SONY \ Documents \ NetBeansProjects \ Project \ src \ Reports \ pageheader.jasper
This route is where it is on my computer.
The error displayed is similar to this:
link