title: Execute .jar file through Mozilla Add-on
body: <p>I have been trying to find a way to execute a .jar file using Mozilla JPM (I am well aware that an add-on that accomplishes this exists but I want to learn). I followed the online tutorial and this is my code right now</p>
  
  <pre><code>var buttons = require('sdk/ui/button/action');
  var tabs = require("sdk/tabs");
  
  var button = buttons.ActionButton({
    id: "mozilla-link",
    label: "Visit Mozilla",
    icon: {
      "16": "./icon-16.png",
      "32": "./icon-32.png",
      "64": "./icon-64.png"
    },
   onClick: handleClick
  });
  
  function handleClick(state) {
    tabs.open("C:\Users\QaziWa\Documents\Jar\DownloadReportPPE.jar");
  }
  </code></pre>
  
  <p>Now I have successfully opened URLs but I cannot find any documentation on how to execute a jar file. My code above:</p>
  
  <pre><code>tabs.open("C:\Users\QaziWa\Documents\Jar\DownloadReportPPE.jar");
  </code></pre>
  
  <p>is clearly incorrect.</p>
  
  <p>I was looking at this link: <a href="https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/tabs" rel="nofollow">https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/tabs</a>, but I failed to find anything that presents the ability to execute a jar file. </p>
  
  <p>My aim is to create an add-on button that will execute this jar file for me. This jar file downloads pdf reports on a website so I would like it to execute in a new tab or window. What method will give me what I am looking for or is there any documentation that can help me.</p>