title: Open html in browser from Java. Bug if browser is not started?
body: <p>I am using</p>
  
  <pre><code>java.awt.Desktop.getDesktop().browse(uri);
  </code></pre>
  
  <p>to show my users a generated html file. All is fine if the browser (firefox 3.5.7; linux) is started before I make the call. But if the browser start is triggered from the getDesktop().browse call then the java application will not exit until the browser closes.</p>
  
  <p>How can I avoid this behaviour? Is this known under windows/macOsx too?</p>
  
  <p>(If I then force the exit of the java application the browser will close too and sometime even crash!?)</p>