title: Desktop API is not supported on the current platform
body: <p>I have encountered this error:</p>
  
  <blockquote>
    <p>java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform</p>
  </blockquote>
  
  <p>I would open a file from my java application. I use this method:</p>
  
  <pre><code>Desktop.getDesktop().open(new File(report.html"));
  </code></pre>
  
  <p>How can i solve this problem? </p>