Example

public static void main(){
System.out.println("No args"); //$NON-NLS-1$
}

Solution
  1. Ensure that the main method has the correct signature.

public static void main( String[] args ){
System.out.println("No args"); //$NON-NLS-1$
}