I have two JDKs, for Java 6 and 7.
I want to build my project using both. Initially we only built against 1.6. I see in my project setting I can select 1.5, 1.6 1.7
To tell eclipse to use JDK, you have to follow the below steps.
After completing the above steps, you are done now and eclipse will start using the selected JDK for compilation.