update host for java sample