Update Java Base Samples.