![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I've written an application that serves as a floating desktop "button bar" (call it MyApp). The requirements for it were that: An application's main class is loaded like so:
PROBLEM: I had to implement a custom SecurityManager that prevented a quitting application (using System.exit()) from killing the JRE (and hence all the other Java apps). Side effect: the application stops running, but the memory it used isn't reclaimed. MyApp has no refence to the application that Does anyone know of another way to do this? A method that would keep a reference to the launched processes so they could be explicitly terminated? Is there a way for my custom SecurityManager to get a handle on the process that initiated the System.exit()? Any help would be appreciated. Replies: |
Sponsored Links
|