This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Securing from being stopped Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Securing from being stopped" Watch "Securing from being stopped" New topic
Author

Securing from being stopped

netharam ram
Ranch Hand

Joined: Aug 09, 2001
Posts: 202
Hi, I don't want my application to be stopped from running from being stopped using ctrl+alt+del.I also doesn't want my application to be stopped from running at startup.i.e the user can remove my application from the startup folder or from the run key in the registry.But I wnat my application to run at startup even if it is removed from these places,is it possible?Or can I place my application in some other place for general startup?
Please reply as soon as possible.
Happy middling with java.
Netharam.
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
I don't believe this is possible. If the JVM is shut down from the windows task manager, there isn't much you can do about it. Preventing the user from disabiling it doesn't sound easy. What are you trying to write here, some sort of virus ?
netharam ram
Ranch Hand

Joined: Aug 09, 2001
Posts: 202
Sorry I'm not tryin to write any virus,I want my application to take control over the system & watch what the client does & report it to the administrator.If the client is aware of my program & if he just quits it then I lose control over that client.This is the reason why I wish my application to keep running.
Reply positively.
Happy middling with java.
Netharam.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
This has been asked before and I have never seen anyone answer how to do it.
Obviously you would have to make it operating system specific (what you describe probably already is).
You would probably have to write some native code to grab the OS keyboard events before the OS decides what to do with them and reroute that keystroke sequence to your application.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
netharam
Can you stop the user unplugging the power cord?
Your general concepts are wrong! Your user should control how to use your software, not your software control the user or his/her computer.
Unless you want to write some virus...
Visit JavaChina on the web
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
JavaRanch will not dominate the world. Neither will your software!!!
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Netharam
Just tell them that it is on there and then tell them not to turn it off!! explain to the client hwat it is, and then tell them if they turn it off they must be hiding something and they will be fired.


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Securing from being stopped