I created an application in java and I want it to run only once. If the application is already running, a messagebox should popup telling the user that the application is already running.
Any idea?
I created an application in java and I want it to run only once. If the application is already running, a messagebox should popup telling the user that the application is already running.
Any idea?
You can check the running programs pid names for an instance of the current program.
Or
Run the application as an instance from another class and keep the check in the other class.