title: Load a JFrame into a html
body: <p>I am trying to open my Applet.jar in a html code.</p>
  
  <p>My Java code is :</p>
  
  <pre><code>public class NewJFrame extends javax.swing.JFrame {
  
      public NewJFrame() {
          initComponents();
      }
  
      private void initComponents() {
          setTitle("Example");
          //more lines code base in JFrame with button,labels etc
      }
  
      public static void main(String args[]) {
          try {
              for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                  if ("Nimbus".equals(info.getName())) {
                      javax.swing.UIManager.setLookAndFeel(info.getClassName());
                      break;
                  }
              }
          } catch (ClassNotFoundException ex) {
              java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (InstantiationException ex) {
              java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (IllegalAccessException ex) {
              java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (javax.swing.UnsupportedLookAndFeelException ex) {
              java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          }
          //&lt;/editor-fold&gt;
  
          /* Create and display the form */
          java.awt.EventQueue.invokeLater(new Runnable() {
              public void run() {
                  new NewJFrame().setVisible(true);
              }
          });
      }
  }
  </code></pre>
  
  <p>My html code is :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;h1&gt;Java Applet Example&lt;/h1&gt;
  
  &lt;p&gt;&lt;object type="application/x-java-applet" width="300" height="300"&gt; &lt;param name="code" value="NewJFrame.class" /&gt; &lt;param name="archive" value="20130717_Applet.jar" /&gt; &lt;param name="mayscript" value="true" /&gt; Java failed to load &lt;/object&gt;&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So when i am trying to open the html file with a browser it throws me up :</p>
  
  <p>Java Error: “ClassNotFoundException NewJFrame.class”</p>
  
  <p>I change the security for the java control panel to Medium from High but i get the same error.</p>