1. Right Click on the project.
2. In Run As option list select Run Configuration
3. Then, JRE tab, select the corresponding JRE and then re-select the JRE again.

Hope this help you out.