I am following a tutorial on Spring batch and using jre7. In the Step function there is a line
return stepBuilderFactory.get("step1")
.<Employee, EmployeeContribution>chunk(1)
.reader(flatFileItemReader())
.processor(processor())
.writer(writer())
.build();
Here I get an error saying
java.util.function.Function cannot be resolved. It is indirectly referenced from required .class files.
The tutorial is also using jre7, how is it working for them and not for me?