title: Eclipse / Jframe - Unable to Launch
body: <p>When I click on run/debug in eclipse, it gives me this error:</p>
  
  <p>Title:Unable to Launch
  "The selection cannot be launched and there are no recent launches"</p>
  
  <p>Here is my code:</p>
  
  <pre><code>package jframe1;
  import javax.swing.*;
  public class jframe1 {
      public static void main(String args){
       JFrame frame = new JFrame();
       JButton button = new JButton("clikity");
  
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
       frame.getContentPane().add(button);
  
       frame.setSize(300, 300);
       frame.setVisible(true);
      }
  }
  </code></pre>
  
  <p>It runs fine if I make a command line application, but not when I start using JFrame I cannot run my code/application.</p>
  
  <p>How do I fix this? Where is the problem?</p>