title: Getting exclusive system-wide lock in Java
body: <p>I'm re-working a Java executable that may be started multiple times, and I want the process to proceed one at a time.  In C# I would do this with a named/system <a href="http://msdn.microsoft.com/en-us/library/aa332347%28v=VS.71%29.aspx" rel="noreferrer">Mutex</a>, but this doesn't seem to be possible in Java.  How can I achieve this functionality?</p>