title: How to Open HTML file using Java?
body: <p>I try to open HTML file from local (In my system) by Java program. I tried some of the program got through stack overflow but its not working as much.</p>
  
  <p><strong>For E.G.:</strong> I have this small HTML file.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
    &lt;head&gt; 
      Test Application
    &lt;/head&gt;
    &lt;body&gt;
       This is test application
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>My Java code:</strong> </p>
  
  <pre><code>Runtime rTime = Runtime.getRuntime();
  String url = "D:/hi.html";
  String browser = "C:/Program Files/Internet Explorer/iexplore.exe ";
  Process pc = rTime.exec(browser + url);
  pc.waitFor();
  </code></pre>
  
  <p>Any solution or tips appreciated.</p>