This is why I recommend novices use a basic text editor to write their code and the command line to compile and run it.

You need a class that contains a main() method in order to run a program.