I think I know how to solve the problem except: I don\'t know where in the pom the specific version is referred to (I do not see it explicitly) and the solution I have seen is t
I figured out the solution to this problem in eclipse.
In Eclipse,
Navigate to Window -> Preferences
On the left hand pane, expand Java and you will find the "Installed JREs" entry
Select that and you should be able to see the JRE entry that is referring to the JRE folder rather than the JDK folder.
Select the entry to edit it and then redirect it to the JDK folder and click on Apply.
This solved my problem right away.