Use Java to request time from time server.