add java and modify config