I have two questions regarding compiling a project in Eclipse to a specific JRE:
1) Properties window for project > Java Build Path > Libraries tab:
If I want to compile to JRE 6 - Should the window show JRE 6 and also JRE 7 as included in the build path? Or is only JRE 6 sufficient?
My current situation - good or bad?
2) I know the steps to compiling a project to a specific JRE:
a- Make sure the JRE is in the installed JREs list in Eclipse.
b- Add it to the Build Path of the project, by clicking 'Add Library' in the window I showed.
c- Setting the Compiler Compliance Level of the project to be the same as the oldest JRE I want my application to be able to run on (the JRE I added to the build path).
This is all good, but I still don't understand one thing: What's the difference is between the JREs in the Java Build Path, and the JRE version set as the Compiler Compliance Level?