java basic segment init