title: Netbeans project still running when using `Runtime.getRuntime().exec("explorer.exe");`
body: <p>I'm working on a (non-malicious) screen-locking sort of Swing application, and I've adapted code from Martijn Courteaux's answer at <a href="https://stackoverflow.com/questions/6744535/use-java-to-lock-a-screen">Use Java to lock a screen</a> to do this.  The problem is that when I use <code>Runtime.getRuntime().exec("explorer.exe");</code> to reopen the Explorer process at program closing, Netbeans thinks that my project is still running because the resulting explorer.exe is running.  CMD prompt and JCreator don't have this issue.</p>
  
  <p>Can anyone give an example of the preferred way to call a command like <code>explorer.exe</code> to avoid this happening with Netbeans?</p>
  
  <p><strong>Edit:</strong> I close the Explorer process at the start of the program (which includes the taskbar).  When I run Explorer, it's not to open a Windows Explorer window (which works totally fine with the given answers) but to restore the regular Windows UI.</p>