title: "unreported exception IOException; must be caught or declared to be thrown". Have a look on the coding
body: <p>I'm coding, to open windows calculator, but the compiler is giving an error:</p>
  
  <blockquote>
    <p>unreported exception IOException; must be caught or declared to be thrown. </p>
  </blockquote>
  
  <p>If I write throws against the <code>ActionListener</code> method then it is not overridden.</p>
  
  <p>Part of the code:</p>
  
  <pre><code>else if(e.getActionCommand().equals("Window Calculator")) {
      Runtime.getRuntime().exec("calc");   
  }
  </code></pre>