This is more like an end user problem. Also consider the possible need to run multiple instances of any particular application and prevent users from doing so will be a serious annoyance.
If the problem is related to temporary file conflicts, just make sure that all of your temporary files have unique names. This, as I understand it, is the most common reason why people feel the need to prevent multiple instances of their applications from running.
PS: The java.io.File.createTempFile () methods are ideal for preventing temporary file conflicts because they automatically generate unique file names.
Randolf Richardson Jul 30 '09 at 19:39 2009-07-30 19:39
source share