Stopping Java Application - Urgent please
I am writing a Java application which will run in the background continuosly with some time interval .
My code goes like this
public class Task1 extends TimerTask {
run(){
// Code to be repeated will be placed here
}
If I want to stop the program , what is the way ? (Except Ctrl+C). I want to have a program like "tomcat start" and "tomcat stop" .How to write such program . Please give hints .
Thanks in advance...
Regards,
Ravi

