I want to prevent the user from running my java application multiple times in parallel.
To prevent this, I have created a lock file when am opening the application,
I see two options you can try: