Adding java dependency and mailsender init script