Hi Tamjid,
Sounds like a problem with System.exit being called. Looking at the
JasperReports source code, if you are using JasperDesignViewer, it adds a
WindowListener to itself that calls exitForm() on close, which invokes
System.exit(0), which shuts down the JVM. The only workaround is to not call
System.exit, but instead find an alternative way to clean up the Jasper GUI
and data structures. You could just remove the WindowListener, though if you
generate dozens or hundreds of report windows over time you may notice
memory leaks, depending on how Jasper stores things internally. You may need
to dig into the Jasper source code and/or documentation to find the best way
to do it. And if you are stumped, you'll need to ask the Jasper developers
for further assistance.
-Curtis
On Wed, Mar 10, 2010 at 6:39 PM, Md Tamjidul Hoque <
[hidden email]
> wrote:
> Hi
>
> for my ImageJ application I am calling jasper report for reporting
> purpose.
>
> But the problem is whenever I close the report it also kills/closes ImageJ.
>
> Any suggestion, how not to kill ImageJ while closing the report?
>
> Thanks
> Tamjid
>