Display error when no main method found