title: Getting error in Java, Have no idea what I'm doing wrong
body: <p>I'm new to Java and I was trying to do the following on eclipse: </p>
  
  <pre><code>import javax.swing.*;
  
  public class Hello_World {
    public class HelloWorld extends JFrame
    {  
       public static void main(String[] args) {
       JFrame frame = new HelloWorld();
       frame.setSize( 300, 200 );
       frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
       frame.setTitle( "Hello world" );
       frame.setVisible( true );
      }
    }
  }
  </code></pre>
  
  <p>I have no idea what I doing wrong here.
  The compiler gives me following error:</p>
  
  <pre><code>Main method not found in class Hello_World, 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>Can someone tell me what I'm doing wrong?</p>