[izpack-devel] Single Installer Instance
Tino Schwarze
berlios.de at tisc.de
Wed Jan 30 08:54:18 CET 2008
On Wed, Jan 30, 2008 at 08:33:36AM +0100, Julien Ponge wrote:
> > I haven't done this with Java. I know Eclipse and some other applications
> > do this, but was wondering if there was an easy way to implement it. My
> > experience has been that each Java application blindly launches in a new JVM
> > with no way to check in an OS neutral way whether an instance of the same
> > application is already running.
There doesn't seem to be a simple way to detect already running Java
VMs. (Apart from using Sun's attach API from Java 1.6, but it's not
official yet.)
> How about a lock/pid file?
Dangerous. Even if we use the deleteOnExit stuff, the lock may be left
over somehow. We'd also need a way to create some installer-specific
lock name. Is there a way to figure out what the name of the installer's
JAR is? The lock file should be located there and named similarly.
Bye,
Tino.
--
www.craniosacralzentrum.de
www.spiritualdesign-chemnitz.de
Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz
More information about the izpack-devel
mailing list