update java client demo