how can i avoid running of more than one instance on same java project at the same time?
<p>i have a java project, works as a server. when an instance of this project running, i can run another instance.<br>
how can i avoid running of more than one instance on same java project at the same time?
(Stop the server when another instance is detected)</p>
