i have a program MyApp
Each time i type at command line:
java MyApp
the program will run in a new window. But i want only one instance of program will remain.
I want my program to check if any instance of it is exist then it will terminate. How can i do that ?
Thanks in advance and sorry for my poor English