Install jdk 5 and then
Window -> preferences -> Installed JREs
And then go back to your project
Project -> properties -> Java Build Path -> libraries
remove the 1.7 system libaries, and: add library... -> JRE System LIbrary -> Alternate JRE -> The JRE you want. It must be 1.5 in this case.