update Java sampler