I want to prevent multiple instances of application being launched in java. I know 2 methods for this:
But
There is a library called jUnique which does that and will save you the bother of implementing it yourself.