title: How to run a .jar inside browser?
body: <p>I tried to execute a <code>.jar</code> using <code>HTML</code> or <code>PHP</code>. </p>
  
  <p>In the first case I wrote the code below:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;applet code=Diagnostica.class 
       archive="Diagnostica/Diagnostica.jar"
       width="120" height="120"&gt;
  &lt;/applet&gt;
  </code></pre>
  
  <p>This way doesn't work cause the file <code>Diagnostica.jar</code> need to contain an <code>applet</code> I suppose.</p>
  
  <p>So I tried the second option in <code>PHP</code>:</p>
  
  <pre class="lang-php prettyprint-override"><code>exec("java -jar Diagnostica/Diagnostica.jar");
  </code></pre>
  
  <p>This way it works. <code>Diagnostica.jar</code> starts outside the browser, but I want to start it inside the browser.</p>
  
  <p>How can I do?</p>