First java batch