add java client demo