title: How to run applet in jdk-14 and Chrome?
body: <p>I'm writing an simple applet using JDK-14 in <code>MyApp.java</code>:</p>
  
  <pre><code>public class MyApp extends Applet {
      public void paint(Graphics g) {
          g.drawString("My App", 20, 20);
      }
  }
  </code></pre>
  
  <p>Then I created <code>index.html</code> and add the following line to <code>&lt;head&gt;</code> tag:</p>
  
  <p><code>&lt;applet code="MyApp.class" width=200 height=600&gt;&lt;/applet&gt;</code></p>
  
  <p>When I saved and reload my web page in <code>Chrome</code>, nothing displayed.</p>
  
  <p>Then, I tried to execute the <code>MyApp.java</code> run it in <code>Terminal</code>, the following error occured:</p>
  
  <pre><code>Note: MyApp.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  Error: Main method not found in class MyApp, please define the main method as:
     public static void main(String[] args)
  or a JavaFX application class must extend javafx.application.Application
  </code></pre>
  
  <p>I read that the <code>applet</code> doesn't require <code>public static void main(String[] args)</code>.</p>
  
  <p>Is there any problem with Chrome or I didn't import something ?</p>