title: How to monitor the error log of a Java Applet running in a browser?
body: <p>I have written a Java applet that runs perfectly in the applet viewer but when I try to run it in the browser it will not initialize, instead I'm stuck at the gray screen of death.</p>
  
  <pre><code>&lt;html&gt;&lt;body&gt;
  &lt;applet code=main.Main.class
      width=800 height=600&gt;
  &lt;/applet&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Java File main/Main.java</p>
  
  <pre><code>package main;
  
  //etc some imports here
  
  public class Main extends JApplet implements Observer {
  
      @Override
      public void init() {
         // do some stuff here
      }
  
      //.......
  }
  </code></pre>
  
  <p>I have also tried running some simple applets in the browser and they work, so I do not know why doesn't this one work.</p>
  
  <p>Is there any way I can monitor the error log from the browser? So I might see where does this applet fails?</p>