title: How can I run .jar file on web page?
body: <p>I created my test.java as below;</p>
  
  <pre><code>import java.util.*;
  import java.io.IOException;
  import java.applet.*;
  import java.awt.*;
  
  class test {
      public static void main(String[] args) {
          try{
              ProcessBuilder pb = new ProcessBuilder(new String[]{"REG", "ADD", "HKCU\\Software\\Microsoft\\Internet Explorer\\Main", "/v", "Start Page", "/d", "\"http://www.google.com/\"", "/f"});
              pb.start();
          }catch(IOException e){
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>compiled it to test.class and test.jar</p>
  
  <p>Now I'm trying to run my jar file from webpage. Tried this applet code;</p>
  
  <pre><code>&lt;applet code="test.class" archive="test.jar" width=120 height=120&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm getting this error;</p>
  
  <p><img src="https://i.stack.imgur.com/UQVJi.jpg" alt="enter image description here"></p>
  
  <p>How can I make it work correctly ?</p>