add java file for reduce path project