Program keeps crashing!

Im doing this code and it keeps on saying that "a fatal exception has occurred: program will now exit" whenever I try to run it. It compiles fine it just keeps on crashing... Any help would be much appreciated.

java.lang.NoSuchMethodError: main

Exception in thread "main"

is what i also receive after it crashes...

[341 byte] By [nvaughna] at [2007-11-27 7:03:44]
# 1

import java.util.*;

public class HardCodedPass_basic

{

public int verify(String password)

{

if (password.equals("open"))

return 0;

else

return 1;

}

public void main (String[] args)

{

System.out.print("What is your name? ");

Scanner scan = new Scanner(System.in);

String name = scan.next();

if (name == "Nate")

{

System.out.print("Hello, " + name +"! How good of you to be here!\n");

}

else

{

System.out.print("Hello, "+ name+ "!\n");

System.out.print("What is the secret word? ");

String guess = scan.next();

while(verify(guess) != 0)

{

System.out.print("Wrong, try again. What is the secret word? ");

guess = scan.next();

}

}

System.out.print("Good job $name. A few more wrong guesses and I " +

"would've had to call the cops...\n");

}

}

nvaughna at 2007-7-12 18:55:00 > top of Java-index,Java Essentials,Java Programming...
# 2
add "static" in main declaration
calvino_inda at 2007-7-12 18:55:00 > top of Java-index,Java Essentials,Java Programming...
# 3
lol clumsy me! thanks I really should have looked over my code better... I know i also have to make verify static as well.... thanks again
nvaughna at 2007-7-12 18:55:00 > top of Java-index,Java Essentials,Java Programming...