Forums Register Login

How load, compile and execute a report file (.jrxml) inside jar

+Pie Number of slices to send: Send
I work in eclipse, I create reports (. Jrxml) I load and I compile this report through a java program, so far all works well when I generate the jar of this project, my program generates an exception
+Pie Number of slices to send: Send
If you're going to compile a .jrxml file and the .jrxml file is contained inside the jar then you have to load it as a resource, not a file. Without knowing how you're doing it now it's hard to help.

That aside--if it's going to be inside a jar why not just put the compiled report in the jar?!
Are you here to take over the surface world? Because this tiny ad will stop you!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2825 times.
Similar Threads
JasperReport problem
Is dynamic columns possible in Jasperreport
about jasper report
Which jrxml file can be called from Java
Jasper report Vs crystal Report
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:03:04.