Digging this one from the grave... I'm looking for the same answer. Is it possible to start rmid from within a Java program? I tried the below line of code but I'd still get exceptions telling me that the Activation System isn't running: Process p = Runtime.getRuntime().exec("rmid -J-Djava.security.policy=" + System.getProperty("user.dir") + System.getProperty("file.separator") + "policy.file"); I use user.dir and file.separator to determine the location of the policy file (the same location that the Java program is being executed). [ June 10, 2002: Message edited by: David Duran ]
The start time for the rmid process isn't trivial, in my experience. I'd follow the exec() call with a sleep of 5-10 seconds, then look to see if the process is running.
Make visible what, without you, might perhaps never have been seen. - Robert Bresson
Joined: Feb 11, 2002
Hahaha, jeez louise. No wonder it wasn't working. I already did have a call to Thread.sleep()after it but it didn't seem to work... Thread.sleep(3); It slipped my mind that that's not 3 seconds... but 3 ms. Thanks Michael.