title: Converting xls to xlsx in java
body: <p>I am converting xls files to xlsx using the software from the following link <a href="http://www.microsoft.com/en-in/download/details.aspx?id=3" rel="nofollow">http://www.microsoft.com/en-in/download/details.aspx?id=3</a></p>
  
  <p>I run the above software by creating a batch file using java.</p>
  
  <pre><code>try {
      String cmds[] = {batPath};
      Runtime runtime = Runtime.getRuntime();
      Process process = runtime.exec(cmds);
      process.getOutputStream().close();
      InputStream inputStream = process.getInputStream();
      InputStreamReader inputstreamreader = new InputStreamReader(inputStream);
      BufferedReader bufferedrReader = new BufferedReader(inputstreamreader);
      String strLine = "";
      while ((strLine = bufferedrReader.readLine()) != null) {
          //    System.out.println(strLine);
      }
  } catch (IOException ioException) {
      ioException.printStackTrace();
  }
  </code></pre>
  
  <p>Every time the converter runs, a dialog box pops up on top saying converting files...
  The problem is that I may have to run the software 100 times, but it keeps interfering with any other work although my program runs in background.</p>
  
  <p>Is there another way to do this ?</p>