I downloaded the latest Eclipse on Windows 7. When I click the eclipse icon it throws the following exception:
I have the same of problem because I was have both the java 1.7 and the java 1.8 and I solved the problem By :
for windows :
first :
open your CMD and write java -version the result is the current version of java on your pc for exampe the result is 1.8 so
second
open the eclipse.ini and if the path was not the path of current version java (that shown in result of CMD) edit the path to correct path of your java (the version shown in result ) like this :
before I change the path was :
-vm
C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m -Xmx1024m
after I check of my version of java using CMD the result is : java 1.8 so I change the path and version like this :
-vm
C:\Program Files\Java\jdk1.8.0_45\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
Nice Day :)