java client side