I too faced the same issue. I followed the following steps to resolve my issue -
Right click on your project -> Properties
Select Java Build Path in the left menu
Select Libraries tab
Under the module path, select the troublesome JRE entry
Click on Edit button
Select Workspace default JRE.
Click on Finish button
If the above steps don't work for you, instead of Workspace default JRE, you can choose an Alternate JRE and give the path to the JRE that you want to point.