Any Java program that is to be run from the command line must contain main method.
This method has signature public static void main(String[] args).