Upgraded all the java samples.