You need to put your code within the main method. There is no application start point.


public static void main(String args[]){
// code to execute here
}