simple java client