Exception in thread "main" java.lang.NoSuchMethodError: main
<p>when i try to compile this: </p>

<pre><code>public class Risk
{
}
class territory 
{

    public static void main (String[]arg) 
    {
        System.out.println ("hi") ; 
    } 
}
</code></pre>

<p>I get this error message: </p>

<pre><code>Exception in thread "main" java.lang.NoSuchMethodError: main
</code></pre>

<p>whats going wrong here? </p>
