Static initializatoin of main class may not work