title: how to open existing file like .docx, .txt, .pptx through java?
body: <p>I am wondering how to open a file through java.</p>
  
  <p>I can open Office itself like this</p>
  
  <pre><code>     try {
          Runtime runTime = Runtime.getRuntime();
          Process process = runTime.exec("C:\\Program Files\\Microsoft Office\\Office15\\EXCEL.EXE");
  
      } catch (IOException e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>But I want to open files directly from java.</p>