Exception in thread "main" java.lang.NoSuchMethodError: main
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-03-22T21:57:41Z
Indexed on
2010/03/22
22:01 UTC
Read the original article
Hit count: 339
when i try to compile this:
public class Risk
{
}
class territory
{
public static void main (String[]arg)
{
System.out.println ("hi") ;
}
}
I get this error message:
Exception in thread "main" java.lang.NoSuchMethodError: main
whats going wrong here?
© Stack Overflow or respective owner