Install java before installing elasticsearch