title: Desktop.getDesktop.open() in Java fails
body: <p>I have this piece of code:</p>
  
  <pre><code>public void openSelectedFiles(MouseEvent mouseEvent){
      ListView&lt;String&gt; listView = (ListView&lt;String&gt;) ((Node) mouseEvent.getSource())
          .getScene().lookup("#listOfReferenceFiles");
  
      String selectedFileString =  listView.getSelectionModel().getSelectedItem();
      System.out.println(Desktop.isDesktopSupported());
      File fileToOpen = new File(selectedFileString);
      System.out.println(fileToOpen.exists());
  
      try {
          Desktop.getDesktop().open(fileToOpen);
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>I am using Java 8, and it seems to be working, until this line:</p>
  
  <p><code>Desktop.getDesktop().open(fileToOpen);</code></p>
  
  <p>It does not throw an exception, it just freezes my application. Is this a bug?</p>