set up java and elastic search