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.
The issue was fixed by doing the following steps.
Eclipse finds the JAVA executables from 'C:\ProgramData\Oracle\Java\javapath'
The folder structure will contain shortcuts to the below executables,
i. java.exe
ii. javaw.exe
iii. javaws.exe
For me the executable paths were pointing to my Program Files(x86) (home for 32 bit applications) folder location
I corrected it to Program Files (which homes 64-bit applications) and the issue got resolved
Please find the screenshot for the same.
The best answer here is too long. I cannot comment so I added my answer.
I had a similar error after installing Java 8 on my Windows 7 system, 64 bit system.
Changing environment variables, etc. did not help. So I tried to remove the Java Update 8, but that too did not help. Downloading and installing the 64-bit version of Java 8 SDK fixed my problem. I hope this helps.
The strangest fix ever. Look at your Eclipse path, and make sure you do not have strange characters (like !
, #
, and @
). It worked for me.
I uninstalled Java update 25, and the issue was solved.
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...