title: Error: Could not find or load main class sun.applet.AppletViewer
body: <p>I'm using eclipse and I'm creating this <code>java applet</code> but I keep getting below error when I tried to run an applet. I know it's deprecated in the new version (I even tired 1.8) but is there something I can use to make it work?</p>
  
  <blockquote>
    <p>Error: Could not find or load main class sun.applet.AppletViewer
    Caused by: java.lang.ClassNotFoundException: sun.applet.AppletViewer</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/QStwT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QStwT.png" alt="enter image description here"></a></p>