title: Eclipse: Run As -> Java Applet is missing
body: <p>So I am trying to run the following code as a Java Applet in Eclipse:</p>
  
  <pre><code>import processing.core.*;
  
  public class MyPApplet extends PApplet {
  
      private String URL = "https://upload.wikimedia.org/wikipedia/commons/1/16/Appearance_of_sky_for_weather_forecast,_Dhaka,_Bangladesh.JPG";
      private PImage backgroundImg;
  
      public void setup() {
          size(1200, 1200);
          backgroundImg = loadImage(URL, "jpg");
  
      }
  
      public void draw() {
  
          backgroundImg.resize(0,  height);
          image(backgroundImg, 0, 0);
  
      }
  }
  </code></pre>
  
  <p>However, when I select Run -> Run As it displays "(none applicable)". I literally copied and pasted the code straight from the instructor's notes, and then the instructions say select Run -> Run As -> Java Applet. That option is not there. </p>
  
  <p>I tried going into Run Configurations and add a new Java Applet, however, it asks for an Applet name, which I tried putting java.applet.Applet to no avail. My friend has his running just fine with the exact same code. </p>
  
  <p>EDIT: Restarted Eclipse, Now there is an error saying MyPApplet cannot be cast to java.applet.Applet; however, MyPApplet extends PApplet which extends java.applet.Applet....</p>
  
  <p>Help is greatly appreciated...</p>