update java sample files