Things to be done to fix the problem
1. Add the following vm argument in the eclipse.ini
Note: This argument should be added before any of the vmargs -vm C:/path/to/jdk/bin/javaw.exe
2. Change the Installed JREs to point to a JDK instance on your eclipse
Goto Window -> Preferences -> Java -> Installed JREs
Select the intalled JRE and click edit to point to a JDK home directory