I am trying to get my first taste of Android development using Eclipse. I ran into this problem when trying to run Eclipse, having installed version 4.2 only minutes ago.
Please check whether you have set two JAVA paths in the Environment Variable section. If you already installed two versions of the JDK, it might be, then double check you have put PATH for Java like below.
PATH --> C:\ProgramData\Oracle\Java\javapath
and also
JAVA_HOME ---> C:\Program Files\Java\jdk1.7.0_02\bin
If both are there, then this sort of error may occur.
If it's OK, then check in the ".ini" file the below area is OK or not. Open ".ini" file and check
-VM path is C:\Program Files\Java\jdk1.7.0_79\bin\
If not, please set it like that and run again.