fixed error message in case of wrong java version