Fix the java examples.