I believe that you aren't the typedef static in function mainthe correct is "public static void main ....."always the main function have to be static