Java and Eclipse scripting
<p>I got this error. I was trying to make a 2D game with a spaceship and basically a blank screen.</p>

<blockquote>
  <p>exception in thread "main" java.lang.Error:</p>

<pre><code> Unresolved compilation problem:at RType.main(RType.java:23)
</code></pre>
</blockquote>

<p>The error and the code is down here.</p>

<pre><code>package rtype;
import javax.swing.JFrame;

import rtype.Board;

public class RType extends JFrame {
    public RType () {
        add(new Board());

        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(640,840);
        setLocationRelativeTo(null);
        setTitle("2D Game");
        setResizable(false);
        setVisible(true);
    }

    public static void main(String[] args) {
        new RType();
    }
</code></pre>
