Re: how to prevent a jar executed only once in a machine
- From: "John_Woo" <john_woo@xxxxxxxxxx>
- Date: 30 Jun 2006 12:34:56 -0700
dsjoblom@xxxxxx wrote:
John_Woo wrote:
Hi,
If my.jar is a swing UI app (or just a simple app), I'm wondering if
it's possible or how, that
this my.jar can be executed only once (no multi-session) in same
machine <or in same folder>?
Can any one tell?
In addition to the more traditional advice, if you happen to be
deploying your app with java webstart, you can achieve this
functionality easily. See
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/jnlp/ and look up
SingeInstanceListener and SingleInstanceService.
Regards,
Daniel Sjöblom
Thanks for the info, Daniel.
It seemed that's good to prevent multiply login.
My case is to allow same user login twice or more, but in different
machine or different folder, b/c it's swing UI app, they are allowed to
copy the my.jar anywhere except we are to prevent them execute same
my.jar twice or more.
John
.
- References:
- how to prevent a jar executed only once in a machine
- From: John_Woo
- Re: how to prevent a jar executed only once in a machine
- From: dsjoblom
- how to prevent a jar executed only once in a machine
- Prev by Date: Re: getruntime issue
- Next by Date: Re: What in Hell are Sun playing at with learning JNI ?
- Previous by thread: Re: how to prevent a jar executed only once in a machine
- Next by thread: new to Java - best resource?
- Index(es):
Relevant Pages
|
|