I have a problem that I can't solve. I'll explain, I've created a small system that generates reports, so far so good, the problem started when I started to include subreports. Being working everything in NetBeans runs without problem, I create my .jar executable and so far everything is fine, I include the reports as it should and they run perfectly, the point is that this system needs to be shared over the network and when I paste it in my shared folder on the network, opens the system and you can make the corresponding queries to the database and create some reports, here is the thing. It allows me to create reports that DO NOT contain subreports, but those that have a subreport, do not create them, it stays loading, ends and does not create it, can someone help me? I would appreciate it if you could tell me what files you would need to see, thank you.
After thousands of turns I found the solution, I share it with you.
The problem was when connecting the subreport with the master report. I made the serious mistake of, when it is time to indicate where the subreport is, do it with a parameter.
So the solution was to simply use a static absolute route and presto! Matter resolved.
I had to take a dive to investigate the import from scratch and browsing I found a part of this interesting post that I leave here:
"We can also exercise whether we want to save the subreport path (so that the master report knows where to look for it) as a parameter called $P{SUBREPORT_DIR}, or as a static absolute path. It is best to choose the latter since we will modify the path for to look for the subreport in the same directory as the master report. That way if we move them from one directory to another, we only have to worry about taking them both together."
Full post here.