Re: how to prevent a jar executed only once in a machine




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

.



Relevant Pages

  • Requested Registry Access is Not Allowed
    ... We have several applications that will be executing on multiple machines. ... will execute the apps. ... There are Permission Sets within the framework configuration tool, ... The app fails on the WriteEntry and the exception that is thrown is ...
    (microsoft.public.dotnet.framework)
  • RE: Requested Registry Access is Not Allowed
    ... > We have several applications that will be executing on multiple machines. ... > will execute the apps. ... > There are Permission Sets within the framework configuration tool, ... > machine that the app will run. ...
    (microsoft.public.dotnet.framework)
  • Re: disable double clicking attachments
    ... Double click a file and the app opens. ... There's no prompt to save it before the default action takes place. ... It does once you flag their attachment directory as deny execute. ...
    (microsoft.public.outlook.general)
  • Re: Auditing SP Execute.
    ... > As long as the users only have execute permissions on the proc i.e. they ... This assumes that the app doesn't use a single ... > Jasper Smith (SQL Server MVP) ... >> particular sp was execute and by whom. ...
    (microsoft.public.sqlserver.security)
  • Re: Launching an app under Vista with UAP enabled
    ... prompts the user for permission before running th e app. ... We really need a way to launch an app without user ... The following "execute" function is used to launch an app using the ... bSuccess = OpenThreadToken( ...
    (microsoft.public.development.device.drivers)