I have faced such an issue before and setting Java vm directly in eclipse.ini solves my problem.
eclipse.ini file is lcoated in the same directory as your eclipse.exe.
Search for -vm
in file and if it is available then add <your path to jdk|jre>/bin/javaw.exe
in next line.
And if it is not avilable then add these lines at the end of the file
-vm
<your path to jdk|jre>/bin/javaw.exe
NOTE :- Pay attention that there are two different lines. Also make sure that the -vm option is before the -vmargs option (and of course after "openFile").