if you have updated your jdk to 7 you are most likely to face this problem.
This happens mainly due to:
- incompatible
sdk and jdk versions
- using a 32 bit java version for your 64 bit eclipse
JVM (programfilex86-java)
WHAT YOU HAVE TO DO :
firstly check the eclipse.ini file to see if you have a path that is pointing to your jdk
it should look something like this
-vm
C:\Program Files\Java\blah\blah\blah\javaw.exe
if not then locate the jdk 7 javaw.exe file
sample :
C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe
paste -vm and the path below it into your eclipse.ini file
-vm
C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe
make sure that you type the above just before the -vmargs and after the OpenFile