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.
I tried some of the solutions, but not worked for me.
Finally, I found another way, ...
Go to Environment Variables → System Variables
Set C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe to the path in the system variables.
Try it. It worked for me...