add java tcp server and client